summaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-05-29 03:54:44 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-05-29 03:54:44 +0000
commitbadb45113ba98d46a28b54c5f9a9ff122774976c (patch)
tree1e92ceebfae83013c3bb216041315d87470f5539 /test/test.rs
parentb87d45b349485cf2ecf7414af70133bd8e91c4ab (diff)
parent325c43c6d5b5b8945dd8bee3575500887923b2cf (diff)
downloadnix-badb45113ba98d46a28b54c5f9a9ff122774976c.zip
Merge #901
901: Implement sendfile on FreeBSD and Darwin r=Susurrus a=morrowa This PR exposes the `sendfile` system call on libc's supported BSD-likes: * FreeBSD * Darwin (macOS/iOS) DragonFly could be supported in the future, but I was unable to build rustc to test. Note that NetBSD has no equivalent system call. Co-authored-by: Andrew Morrow <andrew.d.morrow@gmail.com>
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test.rs b/test/test.rs
index 6668e06e..8083b8f9 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -22,7 +22,11 @@ mod test_net;
mod test_nix_path;
mod test_poll;
mod test_pty;
-#[cfg(any(target_os = "linux", target_os = "android"))]
+#[cfg(any(target_os = "android",
+ target_os = "freebsd",
+ target_os = "ios",
+ target_os = "linux",
+ target_os = "macos"))]
mod test_sendfile;
mod test_stat;
mod test_unistd;