Skip to content

Commit b06b216

Browse files
bors[bot]SteveLauC
andauthored
Merge #1841
1841: add faccessat on illumos r=asomers a=SteveLauC This binding has been added in [libc#2953](rust-lang/libc#2953) Co-authored-by: Steve Lau <stevelauc@outlook.com>
2 parents 7fa8edc + d19f1d3 commit b06b216

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
2222
([#1831](https://github.com/nix-rust/nix/pull/1831))
2323
- Added `syncfs(2)` on Linux
2424
([#1833](https://github.com/nix-rust/nix/pull/1833))
25+
- Added `faccessat(2)` on illumos
26+
([#1841](https://github.com/nix-rust/nix/pull/1841))
2527

2628
### Changed
2729

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ targets = [
2727
]
2828

2929
[dependencies]
30-
libc = { version = "0.2.134", features = [ "extra_traits" ] }
30+
libc = { version = "0.2.135", features = [ "extra_traits" ] }
3131
bitflags = "1.1"
3232
cfg-if = "1.0"
3333
pin-utils = { version = "0.1.0", optional = true }

src/unistd.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,9 +2921,8 @@ pub fn access<P: ?Sized + NixPath>(path: &P, amode: AccessFlags) -> Result<()> {
29212921
/// # References
29222922
///
29232923
/// [faccessat(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html)
2924-
// illumos: faccessat(2) appears to be supported, but the libc crate does not provide a binding.
29252924
// redox: does not appear to support the *at family of syscalls.
2926-
#[cfg(not(any(target_os = "illumos", target_os = "redox")))]
2925+
#[cfg(not(target_os = "redox"))]
29272926
pub fn faccessat<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P, mode: AccessFlags, flags: AtFlags) -> Result<()> {
29282927
let res = path.with_nix_path(|cstr| {
29292928
unsafe {

0 commit comments

Comments
 (0)