Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 28dc012

Browse files
committedJun 4, 2024
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.
1 parent 25245bb commit 28dc012

File tree

1 file changed

+4
-0
lines changed
  • std/src/sys/pal/unix

1 file changed

+4
-0
lines changed
 

‎std/src/sys/pal/unix/fs.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,8 @@ impl fmt::Debug for File {
15571557
target_os = "netbsd",
15581558
target_os = "openbsd",
15591559
target_os = "vxworks",
1560+
target_os = "solaris",
1561+
target_os = "illumos",
15601562
target_vendor = "apple",
15611563
))]
15621564
fn get_mode(fd: c_int) -> Option<(bool, bool)> {
@@ -1579,6 +1581,8 @@ impl fmt::Debug for File {
15791581
target_os = "netbsd",
15801582
target_os = "openbsd",
15811583
target_os = "vxworks",
1584+
target_os = "solaris",
1585+
target_os = "illumos",
15821586
target_vendor = "apple",
15831587
)))]
15841588
fn get_mode(_fd: c_int) -> Option<(bool, bool)> {

0 commit comments

Comments
 (0)
Failed to load comments.