diff options
author | Xavier L'Heureux <xavier.lheureux@icloud.com> | 2019-07-16 15:02:54 -0400 |
---|---|---|
committer | Xavier L'Heureux <dev.xlheureux@gmail.com> | 2020-05-17 21:05:45 -0400 |
commit | e94c139a47055d3492d6ccccfce4acbcba9d7391 (patch) | |
tree | 7419cc1c1461cda63e4e2a735fd75e4a48677f81 /src/sys/stat.rs | |
parent | 0259f9d51718b90118bbd1d792c88781d0aa98f7 (diff) | |
download | nix-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.rs | 1 |
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) } |