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.
This commit is contained in:
parent
44701e070c
commit
c6073174ab
1 changed files with 4 additions and 0 deletions
|
@ -1557,6 +1557,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)> {
|
||||
|
@ -1579,6 +1581,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)> {
|
||||
|
|
Loading…
Add table
Reference in a new issue