summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPhilipp Matthias Schaefer <philipp.matthias.schaefer@posteo.de>2016-03-11 16:17:24 +0100
committerPhilipp Matthias Schaefer <philipp.matthias.schaefer@posteo.de>2016-03-14 21:43:33 +0100
commitfbe569672fe35db8188bb0a3d0db4739579193a1 (patch)
tree1e4c2eae79eff2d9f5be0a5e18bf559decf33950 /src/lib.rs
parentcb6a9215fb7ba197f86716a3c3fc029d78886e24 (diff)
downloadnix-fbe569672fe35db8188bb0a3d0db4739579193a1.zip
Add context module.
The module wraps context handling related functions and structs.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f3724ec3..46ddf7ee 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -49,6 +49,13 @@ pub mod net;
pub mod sched;
pub mod sys;
+
+// This can be implemented for other platforms as soon as libc
+// provides bindings for them.
+#[cfg(all(target_os = "linux",
+ any(target_arch = "x86", target_arch = "x86_64")))]
+pub mod ucontext;
+
pub mod unistd;
/*