Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28dc012

Browse files
committed
std::unix::fs::get_mode implementation for illumos/solaris.
they both support the F_GETFL fctnl flag/O_ACCMODE mask to get the filedescriptor access modes.
1 parent25245bb commit28dc012

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‎

Lines changed: 4 additions & 0 deletions
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
fnget_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
fnget_mode(_fd:c_int) ->Option<(bool,bool)>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp