syscall/
lib.rs

1#![cfg_attr(not(any(feature = "std", test)), no_std)]
2#![allow(unexpected_cfgs)] // why does this even exist?
3
4#[cfg(test)]
5extern crate core;
6
7pub use self::{arch::*, data::*, error::*, flag::*, io::*, number::*};
8
9#[cfg(target_arch = "aarch64")]
10#[path = "arch/aarch64.rs"]
11mod arch;
12
13#[cfg(target_arch = "riscv64")]
14#[path = "arch/riscv64.rs"]
15mod arch;
16
17#[cfg(target_arch = "x86")]
18#[path = "arch/x86.rs"]
19mod arch;
20
21#[cfg(target_arch = "x86_64")]
22#[path = "arch/x86_64.rs"]
23mod arch;
24
25/// Function definitions
26#[cfg(feature = "userspace")]
27pub mod call;
28
29#[cfg(feature = "userspace")]
30pub use call::*;
31
32/// Complex structures that are used for some system calls
33pub mod data;
34
35pub mod dirent;
36
37/// All errors that can be generated by a system call
38pub mod error;
39
40/// Flags used as an argument to many system calls
41pub mod flag;
42
43/// Functions for low level hardware control
44pub mod io;
45
46/// Call numbers used by each system call
47pub mod number;
48
49/// ABI for shared memory based signals
50pub mod sigabi;
51
52/// V2 scheme format
53pub mod schemev2;
54
55pub mod scheme;
56pub use scheme::*;