summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-10-10 13:58:04 +0000
committerGitHub <noreply@github.com>2022-10-10 13:58:04 +0000
commitb06b216f6e58e6e69d901b8f9fb836c43cd27323 (patch)
tree4b6213139c94297eff8ebda36174e8300d1e7deb /src/unistd.rs
parent7fa8edc6a767e49fb48143aae2b9a271bc16489b (diff)
parentd19f1d3ce5797f5ea6dab8336034a3b3d080e4cf (diff)
downloadnix-b06b216f6e58e6e69d901b8f9fb836c43cd27323.zip
Merge #1841
1841: add faccessat on illumos r=asomers a=SteveLauC This binding has been added in [libc#2953](https://github.com/rust-lang/libc/pull/2953) Co-authored-by: Steve Lau <stevelauc@outlook.com>
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs3
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 {