diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-19 14:01:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-19 14:01:40 +0000 |
| commit | 995114908d128fbbd8e6186e69d350e274b0c94e (patch) | |
| tree | df7b00be787ca4694e19a7648bae449e9ba2b6e7 /library/std/src | |
| parent | 67a97bad94500285e5bfb02d9aea1dcb72defc73 (diff) | |
| parent | fb3cae08ab3fad5b915e04adc60b164ddd1612c4 (diff) | |
| download | rust-995114908d128fbbd8e6186e69d350e274b0c94e.tar.gz rust-995114908d128fbbd8e6186e69d350e274b0c94e.zip | |
Rollup merge of #140016 - pfmooney:illumos-fstatat, r=jhpratt
std: Use fstatat() on illumos
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/fs/unix.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/library/std/src/sys/fs/unix.rs b/library/std/src/sys/fs/unix.rs index 687fc322e59..bc8817bac70 100644 --- a/library/std/src/sys/fs/unix.rs +++ b/library/std/src/sys/fs/unix.rs @@ -12,10 +12,11 @@ use libc::c_char; all(target_os = "linux", not(target_env = "musl")), target_os = "android", target_os = "fuchsia", - target_os = "hurd" + target_os = "hurd", + target_os = "illumos", ))] use libc::dirfd; -#[cfg(target_os = "fuchsia")] +#[cfg(any(target_os = "fuchsia", target_os = "illumos"))] use libc::fstatat as fstatat64; #[cfg(any(all(target_os = "linux", not(target_env = "musl")), target_os = "hurd"))] use libc::fstatat64; @@ -892,7 +893,8 @@ impl DirEntry { all(target_os = "linux", not(target_env = "musl")), target_os = "android", target_os = "fuchsia", - target_os = "hurd" + target_os = "hurd", + target_os = "illumos", ), not(miri) // no dirfd on Miri ))] @@ -922,6 +924,7 @@ impl DirEntry { target_os = "android", target_os = "fuchsia", target_os = "hurd", + target_os = "illumos", )), miri ))] |
