]> git.proxmox.com Git - cargo.git/blob - vendor/redox_syscall/src/lib.rs
New upstream version 0.52.0
[cargo.git] / vendor / redox_syscall / src / lib.rs
1 #![cfg_attr(nightly, feature(asm))]
2 #![cfg_attr(nightly, feature(llvm_asm))]
3 #![cfg_attr(nightly, feature(const_fn))]
4 #![cfg_attr(not(test), no_std)]
5
6 #[cfg(test)]
7 extern crate core;
8
9 pub use self::arch::*;
10 pub use self::call::*;
11 pub use self::data::*;
12 pub use self::error::*;
13 pub use self::flag::*;
14 #[cfg(target_os = "redox")]
15 pub use self::io::*;
16 pub use self::number::*;
17 pub use self::scheme::*;
18
19 #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "arm"))]
20 #[path="arch/arm.rs"]
21 mod arch;
22
23 #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "aarch64"))]
24 #[path="arch/aarch64.rs"]
25 mod arch;
26
27 #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "riscv64"))]
28 #[path="arch/riscv64.rs"]
29 mod arch;
30
31 #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "x86"))]
32 #[path="arch/x86.rs"]
33 mod arch;
34
35 #[cfg(all(any(target_os = "none", target_os = "redox"), target_arch = "x86_64"))]
36 #[path="arch/x86_64.rs"]
37 mod arch;
38
39 #[cfg(not(any(target_os = "none", target_os = "redox")))]
40 #[path="arch/nonredox.rs"]
41 mod arch;
42
43 /// Function definitions
44 pub mod call;
45
46 /// Complex structures that are used for some system calls
47 pub mod data;
48
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 #[cfg(target_os = "redox")]
57 pub mod io;
58
59 /// Call numbers used by each system call
60 pub mod number;
61
62 /// A trait useful for scheme handlers
63 pub mod scheme;
64
65 #[cfg(test)]
66 mod tests;