]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | #![cfg_attr(not(test), no_std)] |
2 | ||
3 | #[cfg(test)] | |
4 | extern crate core; | |
ea8adc8c XL |
5 | |
6 | pub use self::arch::*; | |
7 | pub use self::call::*; | |
5e7ed085 | 8 | pub use self::daemon::*; |
ea8adc8c XL |
9 | pub use self::data::*; |
10 | pub use self::error::*; | |
11 | pub use self::flag::*; | |
12 | pub use self::io::*; | |
13 | pub use self::number::*; | |
14 | pub use self::scheme::*; | |
15 | ||
5869c6ff | 16 | #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "arm"))] |
04454e1e | 17 | #[path="arch/nonredox.rs"] |
ea8adc8c XL |
18 | mod arch; |
19 | ||
5869c6ff | 20 | #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "aarch64"))] |
0731742a XL |
21 | #[path="arch/aarch64.rs"] |
22 | mod arch; | |
23 | ||
17df50a5 XL |
24 | #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "riscv64"))] |
25 | #[path="arch/riscv64.rs"] | |
26 | mod arch; | |
27 | ||
5869c6ff | 28 | #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "x86"))] |
f2b60f7d | 29 | #[path="arch/x86.rs"] |
ea8adc8c XL |
30 | mod arch; |
31 | ||
5869c6ff | 32 | #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "x86_64"))] |
ea8adc8c XL |
33 | #[path="arch/x86_64.rs"] |
34 | mod arch; | |
35 | ||
5869c6ff | 36 | #[cfg(not(any(target_os = "none", target_os = "redox")))] |
dfeec247 XL |
37 | #[path="arch/nonredox.rs"] |
38 | mod arch; | |
39 | ||
ea8adc8c XL |
40 | /// Function definitions |
41 | pub mod call; | |
42 | ||
43 | /// Complex structures that are used for some system calls | |
44 | pub mod data; | |
45 | ||
5e7ed085 FG |
46 | /// Wrapper to make daemons easier to write |
47 | pub mod daemon; | |
48 | ||
ea8adc8c XL |
49 | /// All errors that can be generated by a system call |
50 | pub mod error; | |
51 | ||
52 | /// Flags used as an argument to many system calls | |
53 | pub mod flag; | |
54 | ||
55 | /// Functions for low level hardware control | |
56 | pub mod io; | |
57 | ||
58 | /// Call numbers used by each system call | |
59 | pub mod number; | |
60 | ||
61 | /// A trait useful for scheme handlers | |
62 | pub mod scheme; | |
dfeec247 XL |
63 | |
64 | #[cfg(test)] | |
65 | mod tests; |