std::fs: get_mode implementation for haiku.

This commit is contained in:
David Carlier 2024-08-11 10:14:57 +00:00
parent 91376f4162
commit a7be5bf683
No known key found for this signature in database
GPG Key ID: D308BD11AB42D054

View File

@ -1561,6 +1561,7 @@ fn get_path(_fd: c_int) -> Option<PathBuf> {
target_os = "vxworks", target_os = "vxworks",
target_os = "solaris", target_os = "solaris",
target_os = "illumos", target_os = "illumos",
target_os = "haiku",
target_vendor = "apple", target_vendor = "apple",
))] ))]
fn get_mode(fd: c_int) -> Option<(bool, bool)> { fn get_mode(fd: c_int) -> Option<(bool, bool)> {
@ -1585,6 +1586,7 @@ fn get_mode(fd: c_int) -> Option<(bool, bool)> {
target_os = "vxworks", target_os = "vxworks",
target_os = "solaris", target_os = "solaris",
target_os = "illumos", target_os = "illumos",
target_os = "haiku",
target_vendor = "apple", target_vendor = "apple",
)))] )))]
fn get_mode(_fd: c_int) -> Option<(bool, bool)> { fn get_mode(_fd: c_int) -> Option<(bool, bool)> {