diff options
| author | David Carlier <devnexen@gmail.com> | 2024-08-11 12:53:48 +0100 |
|---|---|---|
| committer | David Carlier <devnexen@gmail.com> | 2024-10-03 22:42:38 +0100 |
| commit | 82b4d0d8aa9e1da2c9df3701bc970cb46b00778e (patch) | |
| tree | 09b8b6f18f80c177d4753d0165525a139bb740ec /library/std/src/sys | |
| parent | 56e35a5dbb37898433a43133dff0398f46d577b8 (diff) | |
| download | rust-82b4d0d8aa9e1da2c9df3701bc970cb46b00778e.tar.gz rust-82b4d0d8aa9e1da2c9df3701bc970cb46b00778e.zip | |
std::fs::get_path freebsd update.
what matters is we re doing the right things as doing sizeof, rather than KINFO_FILE_SIZE (only defined on intel architectures), the kernel making sure it matches the expectation in its side.
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/unix/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs index 39aabf0b2d6..1d962fbc0c2 100644 --- a/library/std/src/sys/pal/unix/fs.rs +++ b/library/std/src/sys/pal/unix/fs.rs @@ -1538,7 +1538,7 @@ impl fmt::Debug for File { Some(PathBuf::from(OsString::from_vec(buf))) } - #[cfg(all(target_os = "freebsd", target_arch = "x86_64"))] + #[cfg(target_os = "freebsd")] fn get_path(fd: c_int) -> Option<PathBuf> { let info = Box::<libc::kinfo_file>::new_zeroed(); let mut info = unsafe { info.assume_init() }; @@ -1566,7 +1566,7 @@ impl fmt::Debug for File { #[cfg(not(any( target_os = "linux", target_os = "vxworks", - all(target_os = "freebsd", target_arch = "x86_64"), + target_os = "freebsd", target_os = "netbsd", target_os = "illumos", target_os = "solaris", |
