std::unix::fs::get_mode implementation for illumos/solaris. · model-checking/verify-rust-std@28dc012 (original) (raw)

Original file line number Diff line number Diff line change
@@ -1557,6 +1557,8 @@ impl fmt::Debug for File {
1557 1557 target_os = "netbsd",
1558 1558 target_os = "openbsd",
1559 1559 target_os = "vxworks",
1560 + target_os = "solaris",
1561 + target_os = "illumos",
1560 1562 target_vendor = "apple",
1561 1563 ))]
1562 1564 fn get_mode(fd: c_int) -> Option<(bool, bool)> {
@@ -1579,6 +1581,8 @@ impl fmt::Debug for File {
1579 1581 target_os = "netbsd",
1580 1582 target_os = "openbsd",
1581 1583 target_os = "vxworks",
1584 + target_os = "solaris",
1585 + target_os = "illumos",
1582 1586 target_vendor = "apple",
1583 1587 )))]
1584 1588 fn get_mode(_fd: c_int) -> Option<(bool, bool)> {