Skip to content

Commit

Permalink
Unrolled build for rust-lang#125998
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer authored Jun 8, 2024
2 parents 8fb1930 + c607317 commit 5bd7708
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/sys/pal/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)> {
Expand All @@ -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)> {
Expand Down

0 comments on commit 5bd7708

Please sign in to comment.