lib.rs 869 Bytes
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1
#![deny(warnings)]
2
#![feature(asm)]
Jeremy Soller's avatar
Jeremy Soller committed
3
#![feature(const_fn)]
4
5
6
#![no_std]

pub use self::arch::*;
Jeremy Soller's avatar
Jeremy Soller committed
7
pub use self::call::*;
Jeremy Soller's avatar
Jeremy Soller committed
8
pub use self::data::*;
9
pub use self::error::*;
Jeremy Soller's avatar
Jeremy Soller committed
10
pub use self::flag::*;
Jeremy Soller's avatar
Jeremy Soller committed
11
pub use self::io::*;
12
pub use self::number::*;
13
pub use self::scheme::*;
14

Jeremy Soller's avatar
Jeremy Soller committed
15
16
17
18
#[cfg(target_arch = "arm")]
#[path="arch/arm.rs"]
mod arch;

19
#[cfg(target_arch = "x86")]
Jeremy Soller's avatar
Jeremy Soller committed
20
#[path="arch/x86.rs"]
21
mod arch;
22
23

#[cfg(target_arch = "x86_64")]
Jeremy Soller's avatar
Jeremy Soller committed
24
#[path="arch/x86_64.rs"]
25
mod arch;
26

Jeremy Soller's avatar
Jeremy Soller committed
27
28
29
30
/// Function definitions
pub mod call;

/// Complex structures that are used for some system calls
Jeremy Soller's avatar
Jeremy Soller committed
31
32
pub mod data;

Jeremy Soller's avatar
Jeremy Soller committed
33
/// All errors that can be generated by a system call
34
35
pub mod error;

Jeremy Soller's avatar
Jeremy Soller committed
36
/// Flags used as an argument to many system calls
Jeremy Soller's avatar
Jeremy Soller committed
37
38
pub mod flag;

Jeremy Soller's avatar
Jeremy Soller committed
39
40
41
/// Functions for low level hardware control
pub mod io;

Jeremy Soller's avatar
Jeremy Soller committed
42
/// Call numbers used by each system call
43
44
pub mod number;

Jeremy Soller's avatar
Jeremy Soller committed
45
/// A trait useful for scheme handlers
46
pub mod scheme;