diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-06-08 04:25:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-08 04:25:44 +0200 |
| commit | ba31a0a9205bc5cf5e60ed963123b5429dbacbce (patch) | |
| tree | ddc301cc3c030e81616f63e5ab0560218c9ee391 /library/std/src | |
| parent | cbda797b77d19e755e6b1107c9323b9d53496bbd (diff) | |
| parent | c6073174ab1311fec27fb7ba5921c169656b1448 (diff) | |
| download | rust-ba31a0a9205bc5cf5e60ed963123b5429dbacbce.tar.gz rust-ba31a0a9205bc5cf5e60ed963123b5429dbacbce.zip | |
Rollup merge of #125998 - devnexen:get_mode_illumos, r=Nilstrieb
std::unix::fs::get_mode implementation for illumos/solaris. they both support the F_GETFL fctnl flag/O_ACCMODE mask to get the file descriptor access modes.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/pal/unix/fs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs index 1aaa8cc2a9d..56a0f8e39c4 100644 --- a/library/std/src/sys/pal/unix/fs.rs +++ b/library/std/src/sys/pal/unix/fs.rs @@ -1561,6 +1561,8 @@ impl fmt::Debug for File { target_os = "netbsd", target_os = "openbsd", target_os = "vxworks", + target_os = "solaris", + target_os = "illumos", target_vendor = "apple", ))] fn get_mode(fd: c_int) -> Option<(bool, bool)> { @@ -1583,6 +1585,8 @@ impl fmt::Debug for File { target_os = "netbsd", target_os = "openbsd", target_os = "vxworks", + target_os = "solaris", + target_os = "illumos", target_vendor = "apple", )))] fn get_mode(_fd: c_int) -> Option<(bool, bool)> { |
