diff options
author | Xavier L'Heureux <xavier.lheureux@icloud.com> | 2019-07-12 16:27:24 -0400 |
---|---|---|
committer | Xavier L'Heureux <dev.xlheureux@gmail.com> | 2020-05-17 21:05:45 -0400 |
commit | 0259f9d51718b90118bbd1d792c88781d0aa98f7 (patch) | |
tree | c8d067b61393cb1628890790def3c6691c70bab6 /src/sys/mod.rs | |
parent | d3fef370b843e0ffd6fc6df6e80d9bbe0d024863 (diff) | |
download | nix-0259f9d51718b90118bbd1d792c88781d0aa98f7.zip |
Add Redox support for most of the modules
Some things are not implemented yet in redox, so a lot of annotations
were added to remove functions when compiling for redox. Those functions
will hopefully be added in time, but for now it's better to have partial
support than none.
Blocked by https://github.com/rust-lang/libc/pull/1438
Diffstat (limited to 'src/sys/mod.rs')
-rw-r--r-- | src/sys/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/mod.rs b/src/sys/mod.rs index d3c2f92b..98339b0f 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -34,6 +34,7 @@ pub mod ioctl; #[cfg(target_os = "linux")] pub mod memfd; +#[cfg(not(target_os = "redox"))] pub mod mman; pub mod pthread; @@ -53,6 +54,7 @@ pub mod quota; #[cfg(any(target_os = "linux"))] pub mod reboot; +#[cfg(not(target_os = "redox"))] pub mod select; #[cfg(any(target_os = "android", @@ -67,6 +69,7 @@ pub mod signal; #[cfg(any(target_os = "android", target_os = "linux"))] pub mod signalfd; +#[cfg(not(target_os = "redox"))] pub mod socket; pub mod stat; @@ -86,6 +89,7 @@ pub mod statvfs; #[cfg(any(target_os = "android", target_os = "linux"))] pub mod sysinfo; +#[cfg(not(target_os = "redox"))] pub mod termios; pub mod time; |