diff options
author | Steve Lau <stevelauc@outlook.com> | 2022-10-10 21:17:55 +0800 |
---|---|---|
committer | Steve Lau <stevelauc@outlook.com> | 2022-10-10 21:17:55 +0800 |
commit | d19f1d3ce5797f5ea6dab8336034a3b3d080e4cf (patch) | |
tree | 4b6213139c94297eff8ebda36174e8300d1e7deb /src/unistd.rs | |
parent | 7fa8edc6a767e49fb48143aae2b9a271bc16489b (diff) | |
download | nix-d19f1d3ce5797f5ea6dab8336034a3b3d080e4cf.zip |
add faccessat on illumos
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index daa76b74..5be59b6c 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -2921,9 +2921,8 @@ pub fn access<P: ?Sized + NixPath>(path: &P, amode: AccessFlags) -> Result<()> { /// # References /// /// [faccessat(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html) -// illumos: faccessat(2) appears to be supported, but the libc crate does not provide a binding. // redox: does not appear to support the *at family of syscalls. -#[cfg(not(any(target_os = "illumos", target_os = "redox")))] +#[cfg(not(target_os = "redox"))] pub fn faccessat<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P, mode: AccessFlags, flags: AtFlags) -> Result<()> { let res = path.with_nix_path(|cstr| { unsafe { |