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