summaryrefslogtreecommitdiff
path: root/src/sys/stat.rs
diff options
context:
space:
mode:
authorXavier L'Heureux <xavier.lheureux@icloud.com>2019-07-16 15:02:54 -0400
committerXavier L'Heureux <dev.xlheureux@gmail.com>2020-05-17 21:05:45 -0400
commite94c139a47055d3492d6ccccfce4acbcba9d7391 (patch)
tree7419cc1c1461cda63e4e2a735fd75e4a48677f81 /src/sys/stat.rs
parent0259f9d51718b90118bbd1d792c88781d0aa98f7 (diff)
downloadnix-e94c139a47055d3492d6ccccfce4acbcba9d7391.zip
Remove more unsupported functions and make it possible to run tests
Diffstat (limited to 'src/sys/stat.rs')
-rw-r--r--src/sys/stat.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/stat.rs b/src/sys/stat.rs
index 5d426844..f8fae4ee 100644
--- a/src/sys/stat.rs
+++ b/src/sys/stat.rs
@@ -289,6 +289,7 @@ pub fn utimensat<P: ?Sized + NixPath>(
Errno::result(res).map(drop)
}
+#[cfg(not(target_os = "redox"))]
pub fn mkdirat<P: ?Sized + NixPath>(fd: RawFd, path: &P, mode: Mode) -> Result<()> {
let res = path.with_nix_path(|cstr| {
unsafe { libc::mkdirat(fd, cstr.as_ptr(), mode.bits() as mode_t) }