summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/backend/libc/mm/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/backend/libc/mm/types.rs')
-rw-r--r--vendor/rustix/src/backend/libc/mm/types.rs39
1 files changed, 38 insertions, 1 deletions
diff --git a/vendor/rustix/src/backend/libc/mm/types.rs b/vendor/rustix/src/backend/libc/mm/types.rs
index 6a41cbe56..f0b4ad593 100644
--- a/vendor/rustix/src/backend/libc/mm/types.rs
+++ b/vendor/rustix/src/backend/libc/mm/types.rs
@@ -16,6 +16,9 @@ bitflags! {
const WRITE = bitcast!(c::PROT_WRITE);
/// `PROT_EXEC`
const EXEC = bitcast!(c::PROT_EXEC);
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -55,6 +58,9 @@ bitflags! {
/// `PROT_ADI`
#[cfg(all(linux_kernel, any(target_arch = "sparc", target_arch = "sparc64")))]
const ADI = linux_raw_sys::general::PROT_ADI;
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -74,6 +80,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
@@ -88,6 +95,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "haiku",
target_os = "nto",
target_os = "redox",
@@ -99,6 +107,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
@@ -111,6 +120,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "haiku",
target_os = "nto",
target_os = "redox",
@@ -120,6 +130,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "haiku",
target_os = "nto",
target_os = "redox",
@@ -129,6 +140,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
@@ -141,6 +153,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
@@ -153,6 +166,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "haiku",
target_os = "nto",
target_os = "redox",
@@ -162,7 +176,12 @@ bitflags! {
#[cfg(freebsdlike)]
const NOCORE = bitcast!(c::MAP_NOCORE);
/// `MAP_NORESERVE`
- #[cfg(not(any(freebsdlike, target_os = "nto", target_os = "redox")))]
+ #[cfg(not(any(
+ freebsdlike,
+ target_os = "aix",
+ target_os = "nto",
+ target_os = "redox",
+ )))]
const NORESERVE = bitcast!(c::MAP_NORESERVE);
/// `MAP_NOSYNC`
#[cfg(freebsdlike)]
@@ -171,6 +190,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "haiku",
target_os = "nto",
target_os = "redox",
@@ -180,6 +200,7 @@ bitflags! {
#[cfg(not(any(
apple,
solarish,
+ target_os = "aix",
target_os = "dragonfly",
target_os = "haiku",
target_os = "netbsd",
@@ -193,6 +214,7 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
+ target_os = "aix",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
@@ -208,6 +230,9 @@ bitflags! {
/// `MAP_UNINITIALIZED`
#[cfg(any())]
const UNINITIALIZED = bitcast!(c::MAP_UNINITIALIZED);
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -224,6 +249,9 @@ bitflags! {
pub struct MremapFlags: u32 {
/// `MREMAP_MAYMOVE`
const MAYMOVE = bitcast!(c::MREMAP_MAYMOVE);
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -243,6 +271,9 @@ bitflags! {
/// file (so that they can be updated with the fresh values just
/// written).
const INVALIDATE = bitcast!(c::MS_INVALIDATE);
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -256,6 +287,9 @@ bitflags! {
pub struct MlockFlags: u32 {
/// `MLOCK_ONFAULT`
const ONFAULT = bitcast!(c::MLOCK_ONFAULT);
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -403,5 +437,8 @@ bitflags! {
const CLOEXEC = bitcast!(c::O_CLOEXEC);
/// `O_NONBLOCK`
const NONBLOCK = bitcast!(c::O_NONBLOCK);
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}