]> git.proxmox.com Git - cargo.git/blob - vendor/redox_syscall/src/lib.rs
New upstream version 0.47.0
[cargo.git] / vendor / redox_syscall / src / lib.rs
1 #![cfg_attr(nightly, feature(llvm_asm))]
2 #![cfg_attr(nightly, feature(const_fn))]
3 #![cfg_attr(not(test), no_std)]
4
5 #[cfg(test)]
6 extern crate core;
7
8 pub use self::arch::*;
9 pub use self::call::*;
10 pub use self::data::*;
11 pub use self::error::*;
12 pub use self::flag::*;
13 #[cfg(target_os = "redox")]
14 pub use self::io::*;
15 pub use self::number::*;
16 pub use self::scheme::*;
17
18 #[cfg(all(target_os = "redox", target_arch = "arm"))]
19 #[path="arch/arm.rs"]
20 mod arch;
21
22 #[cfg(all(target_os = "redox", target_arch = "aarch64"))]
23 #[path="arch/aarch64.rs"]
24 mod arch;
25
26 #[cfg(all(target_os = "redox", target_arch = "x86"))]
27 #[path="arch/x86.rs"]
28 mod arch;
29
30 #[cfg(all(target_os = "redox", target_arch = "x86_64"))]
31 #[path="arch/x86_64.rs"]
32 mod arch;
33
34 #[cfg(not(target_os = "redox"))]
35 #[path="arch/nonredox.rs"]
36 mod arch;
37
38 /// Function definitions
39 pub mod call;
40
41 /// Complex structures that are used for some system calls
42 pub mod data;
43
44 /// All errors that can be generated by a system call
45 pub mod error;
46
47 /// Flags used as an argument to many system calls
48 pub mod flag;
49
50 /// Functions for low level hardware control
51 #[cfg(target_os = "redox")]
52 pub mod io;
53
54 /// Call numbers used by each system call
55 pub mod number;
56
57 /// A trait useful for scheme handlers
58 pub mod scheme;
59
60 #[cfg(test)]
61 mod tests;