summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/param
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:32 +0000
commit4547b622d8d29df964fa2914213088b148c498fc (patch)
tree9fc6b25f3c3add6b745be9a2400a6e96140046e9 /vendor/rustix/src/param
parentReleasing progress-linux version 1.66.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-4547b622d8d29df964fa2914213088b148c498fc.tar.xz
rustc-4547b622d8d29df964fa2914213088b148c498fc.zip
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/src/param')
-rw-r--r--vendor/rustix/src/param/auxv.rs10
-rw-r--r--vendor/rustix/src/param/init.rs4
-rw-r--r--vendor/rustix/src/param/mod.rs10
3 files changed, 9 insertions, 15 deletions
diff --git a/vendor/rustix/src/param/auxv.rs b/vendor/rustix/src/param/auxv.rs
index 6aec061f7..03be2a29d 100644
--- a/vendor/rustix/src/param/auxv.rs
+++ b/vendor/rustix/src/param/auxv.rs
@@ -1,3 +1,4 @@
+use crate::backend;
#[cfg(any(
linux_raw,
all(
@@ -9,7 +10,6 @@
)
))]
use crate::ffi::CStr;
-use crate::imp;
/// `sysconf(_SC_PAGESIZE)`—Returns the process' page size.
///
@@ -28,7 +28,7 @@ use crate::imp;
#[doc(alias = "_SC_PAGE_SIZE")]
#[doc(alias = "getpagesize")]
pub fn page_size() -> usize {
- imp::param::auxv::page_size()
+ backend::param::auxv::page_size()
}
/// `sysconf(_SC_CLK_TCK)`—Returns the process' clock ticks per second.
@@ -43,7 +43,7 @@ pub fn page_size() -> usize {
#[inline]
#[doc(alias = "_SC_CLK_TCK")]
pub fn clock_ticks_per_second() -> u64 {
- imp::param::auxv::clock_ticks_per_second()
+ backend::param::auxv::clock_ticks_per_second()
}
/// `(getauxval(AT_HWCAP), getauxval(AT_HWCAP2)`—Returns the Linux "hwcap"
@@ -68,7 +68,7 @@ pub fn clock_ticks_per_second() -> u64 {
))]
#[inline]
pub fn linux_hwcap() -> (usize, usize) {
- imp::param::auxv::linux_hwcap()
+ backend::param::auxv::linux_hwcap()
}
/// `getauxval(AT_EXECFN)`—Returns the Linux "execfn" string.
@@ -92,5 +92,5 @@ pub fn linux_hwcap() -> (usize, usize) {
))]
#[inline]
pub fn linux_execfn() -> &'static CStr {
- imp::param::auxv::linux_execfn()
+ backend::param::auxv::linux_execfn()
}
diff --git a/vendor/rustix/src/param/init.rs b/vendor/rustix/src/param/init.rs
index e66ff82bb..d261fabd2 100644
--- a/vendor/rustix/src/param/init.rs
+++ b/vendor/rustix/src/param/init.rs
@@ -7,7 +7,7 @@
//! operates on raw pointers.
#![allow(unsafe_code)]
-use crate::imp;
+use crate::backend;
/// Initialize process-wide state.
///
@@ -19,5 +19,5 @@ use crate::imp;
#[inline]
#[doc(hidden)]
pub unsafe fn init(envp: *mut *mut u8) {
- imp::param::auxv::init(envp)
+ backend::param::auxv::init(envp)
}
diff --git a/vendor/rustix/src/param/mod.rs b/vendor/rustix/src/param/mod.rs
index 5169d0a51..c47aca985 100644
--- a/vendor/rustix/src/param/mod.rs
+++ b/vendor/rustix/src/param/mod.rs
@@ -7,10 +7,7 @@
#[cfg(feature = "param")]
mod auxv;
-#[cfg(any(
- target_vendor = "mustang",
- not(any(target_env = "gnu", target_env = "musl")),
-))]
+#[cfg(target_vendor = "mustang")]
mod init;
#[cfg(feature = "param")]
@@ -30,8 +27,5 @@ pub use auxv::page_size;
)
))]
pub use auxv::{linux_execfn, linux_hwcap};
-#[cfg(any(
- target_vendor = "mustang",
- not(any(target_env = "gnu", target_env = "musl")),
-))]
+#[cfg(target_vendor = "mustang")]
pub use init::init;