Debian Codegraph @

debian/rust-vendor/rustix/src/process/mod.rs

raw
1 //! Process-associated operations.
2
3 #[cfg(not(target_os = "wasi"))]
4 mod chdir;
5 #[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]
6 mod chroot;
7 mod exit;
8 #[cfg(not(any(
9 target_os = "emscripten",
10 target_os = "espidf",
11 target_os = "fuchsia",
12 target_os = "horizon",
13 target_os = "redox",
14 target_os = "vita",
15 target_os = "wasi"
16 )))]
17 mod fcntl_getlk;
18 #[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id.
19 mod id;
20 #[cfg(not(any(target_os = "aix", target_os = "espidf", target_os = "vita")))]
21 mod ioctl;
22 #[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
23 mod kill;
24 #[cfg(target_os = "linux")]
25 mod pidfd;
26 #[cfg(target_os = "linux")]
27 mod pidfd_getfd;
28 #[cfg(target_os = "linux")]
29 mod pivot_root;
30 #[cfg(linux_kernel)]
31 mod prctl;
32 #[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))]
33 // WASI doesn't have [gs]etpriority.
34 mod priority;
35 #[cfg(freebsdlike)]
36 mod procctl;
37 #[cfg(not(any(
38 target_os = "espidf",
39 target_os = "fuchsia",
40 target_os = "horizon",
41 target_os = "redox",
42 target_os = "vita",
43 target_os = "wasi"
44 )))]
45 mod rlimit;
46 #[cfg(not(any(
47 target_os = "emscripten",
48 target_os = "espidf",
49 target_os = "fuchsia",
50 target_os = "redox",
51 target_os = "vita",
52 target_os = "wasi"
53 )))]
54 mod types;
55 #[cfg(not(target_os = "wasi"))] // WASI doesn't have umask.
56 mod umask;
57 #[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))]
58 mod wait;
59
60 #[cfg(not(target_os = "wasi"))]
61 pub use chdir::*;
62 #[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]
63 pub use chroot::*;
64 pub use exit::*;
65 #[cfg(not(any(
66 target_os = "emscripten",
67 target_os = "espidf",
68 target_os = "fuchsia",
69 target_os = "horizon",
70 target_os = "redox",
71 target_os = "vita",
72 target_os = "wasi"
73 )))]
74 pub use fcntl_getlk::*;
75 #[cfg(not(target_os = "wasi"))]
76 pub use id::*;
77 #[cfg(not(any(target_os = "aix", target_os = "espidf", target_os = "vita")))]
78 pub use ioctl::*;
79 #[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
80 pub use kill::*;
81 #[cfg(target_os = "linux")]
82 pub use pidfd::*;
83 #[cfg(target_os = "linux")]
84 pub use pidfd_getfd::*;
85 #[cfg(target_os = "linux")]
86 pub use pivot_root::*;
87 #[cfg(linux_kernel)]
88 pub use prctl::*;
89 #[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))]
90 pub use priority::*;
91 #[cfg(freebsdlike)]
92 pub use procctl::*;
93 #[cfg(not(any(
94 target_os = "espidf",
95 target_os = "fuchsia",
96 target_os = "horizon",
97 target_os = "redox",
98 target_os = "vita",
99 target_os = "wasi"
100 )))]
101 pub use rlimit::*;
102 #[cfg(not(any(
103 target_os = "emscripten",
104 target_os = "espidf",
105 target_os = "fuchsia",
106 target_os = "redox",
107 target_os = "vita",
108 target_os = "wasi"
109 )))]
110 pub use types::*;
111 #[cfg(not(target_os = "wasi"))]
112 pub use umask::*;
113 #[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))]
114 pub use wait::*;