diff options
Diffstat (limited to 'vendor/rustix/src/process/mod.rs')
-rw-r--r-- | vendor/rustix/src/process/mod.rs | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/vendor/rustix/src/process/mod.rs b/vendor/rustix/src/process/mod.rs index 0002c0f46..7a189b013 100644 --- a/vendor/rustix/src/process/mod.rs +++ b/vendor/rustix/src/process/mod.rs @@ -7,30 +7,26 @@ mod chroot; mod exit; #[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id. mod id; +mod ioctl; #[cfg(not(target_os = "wasi"))] mod kill; -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(linux_kernel)] mod membarrier; #[cfg(target_os = "linux")] mod pidfd; -#[cfg(any(target_os = "android", target_os = "linux"))] +#[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(target_os = "freebsd")] +#[cfg(freebsdlike)] mod procctl; #[cfg(not(any(target_os = "fuchsia", target_os = "redox", target_os = "wasi")))] mod rlimit; -#[cfg(any( - target_os = "android", - target_os = "dragonfly", - target_os = "fuchsia", - target_os = "linux", -))] +#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] mod sched; mod sched_yield; -#[cfg(not(target_os = "wasi"))] // WASI doesn't have uname. -mod system; #[cfg(not(target_os = "wasi"))] // WASI doesn't have umask. mod umask; #[cfg(not(target_os = "wasi"))] @@ -43,35 +39,27 @@ pub use chroot::*; pub use exit::*; #[cfg(not(target_os = "wasi"))] pub use id::*; +pub use ioctl::*; #[cfg(not(target_os = "wasi"))] pub use kill::*; -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(linux_kernel)] pub use membarrier::*; #[cfg(target_os = "linux")] pub use pidfd::*; -#[cfg(any(target_os = "android", target_os = "linux"))] +#[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(target_os = "freebsd")] +#[cfg(freebsdlike)] pub use procctl::*; #[cfg(not(any(target_os = "fuchsia", target_os = "redox", target_os = "wasi")))] pub use rlimit::*; -#[cfg(any( - target_os = "android", - target_os = "dragonfly", - target_os = "fuchsia", - target_os = "linux", -))] +#[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 system::*; -#[cfg(not(target_os = "wasi"))] pub use umask::*; #[cfg(not(target_os = "wasi"))] pub use wait::*; - -#[cfg(not(target_os = "wasi"))] -#[cfg(feature = "fs")] -pub(crate) use id::translate_fchown_args; |