summaryrefslogtreecommitdiff
path: root/src/sys/mod.rs
diff options
context:
space:
mode:
authorKamal Marhubi <kamal@marhubi.com>2016-02-09 19:36:04 -0500
committerKamal Marhubi <kamal@marhubi.com>2016-02-12 21:12:14 -0500
commit4680d50a8a225309fc706d032a8dc5e71f819ab5 (patch)
tree276bb879f543c6522b3761e20471e88caa0b75d9 /src/sys/mod.rs
parentc33ba2908e20a6d74d472f934f7a4fa9b03cfc06 (diff)
downloadnix-4680d50a8a225309fc706d032a8dc5e71f819ab5.zip
linux: Add sendfile(2)
Diffstat (limited to 'src/sys/mod.rs')
-rw-r--r--src/sys/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/mod.rs b/src/sys/mod.rs
index c7fdc4dc..de449b76 100644
--- a/src/sys/mod.rs
+++ b/src/sys/mod.rs
@@ -16,6 +16,9 @@ pub mod memfd;
#[cfg(not(any(target_os = "ios", target_os = "freebsd", target_os = "dragonfly")))]
pub mod ioctl;
+#[cfg(any(target_os = "linux", target_os = "android"))]
+pub mod sendfile;
+
pub mod signal;
#[cfg(any(target_os = "linux", target_os = "android"))]