mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-24 23:25:55 -04:00
33 lines
1010 B
Rust
33 lines
1010 B
Rust
//! Tests for [`rustix::process`].
|
|
|
|
#![cfg(feature = "process")]
|
|
#![cfg(not(windows))]
|
|
#![cfg_attr(target_os = "wasi", feature(wasi_ext))]
|
|
#![cfg_attr(io_lifetimes_use_std, feature(io_safety))]
|
|
#![cfg_attr(core_c_str, feature(core_c_str))]
|
|
|
|
#[cfg(not(target_os = "wasi"))]
|
|
#[macro_use]
|
|
mod weak;
|
|
|
|
mod cpu_set;
|
|
#[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id.
|
|
mod id;
|
|
#[cfg(any(target_os = "android", target_os = "linux"))]
|
|
mod membarrier;
|
|
#[cfg(any(target_os = "android", target_os = "linux"))]
|
|
mod prctl;
|
|
#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] // WASI doesn't have [gs]etpriority.
|
|
mod priority;
|
|
#[cfg(target_os = "freebsd")]
|
|
mod procctl;
|
|
#[cfg(not(any(target_os = "fuchsia", target_os = "redox", target_os = "wasi")))]
|
|
mod rlimit;
|
|
mod sched_yield;
|
|
#[cfg(not(target_os = "wasi"))] // WASI doesn't have uname.
|
|
mod uname;
|
|
#[cfg(not(target_os = "wasi"))] // WASI doesn't have waitpid.
|
|
mod wait;
|
|
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
|
|
mod working_directory;
|