summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier L'Heureux <xavier.lheureux@icloud.com>2019-09-16 12:29:12 -0400
committerXavier L'Heureux <dev.xlheureux@gmail.com>2020-05-17 21:05:46 -0400
commitb01c5c67b2ccef497cdab56bec333bdad8b9e8d8 (patch)
treece3ff9651dd3d4b2360e9e6957cf169c84801830 /src
parent9e5e9344c6918f6e84d2f6d35af736dc5070f340 (diff)
downloadnix-b01c5c67b2ccef497cdab56bec333bdad8b9e8d8.zip
Disable mkfifo for Redox
FIFOs are not supported (yet?) by RedoxFS, so disable it
Diffstat (limited to 'src')
-rw-r--r--src/unistd.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index 7ee0a14e..53e0ecc9 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -505,6 +505,7 @@ pub fn mkdir<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> {
/// }
/// ```
#[inline]
+#[cfg(not(target_os = "redox"))]
pub fn mkfifo<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> {
let res = path.with_nix_path(|cstr| {
unsafe { libc::mkfifo(cstr.as_ptr(), mode.bits() as mode_t) }