@@ -97,14 +97,14 @@ impl BorrowedFd<'_> {
9797 // We want to atomically duplicate this file descriptor and set the
9898 // CLOEXEC flag, and currently that's done via F_DUPFD_CLOEXEC. This
9999 // is a POSIX flag that was added to Linux in 2.6.24.
100- #[ cfg( not( target_os = "espidf" ) ) ]
100+ #[ cfg( not( any ( target_os = "espidf" , target_os = "vita" ) ) ) ]
101101 let cmd = libc:: F_DUPFD_CLOEXEC ;
102102
103103 // For ESP-IDF, F_DUPFD is used instead, because the CLOEXEC semantics
104104 // will never be supported, as this is a bare metal framework with
105105 // no capabilities for multi-process execution. While F_DUPFD is also
106106 // not supported yet, it might be (currently it returns ENOSYS).
107- #[ cfg( target_os = "espidf" ) ]
107+ #[ cfg( any ( target_os = "espidf" , target_os = "vita" ) ) ]
108108 let cmd = libc:: F_DUPFD ;
109109
110110 // Avoid using file descriptors below 3 as they are used for stdio
@@ -119,7 +119,7 @@ impl BorrowedFd<'_> {
119119 pub fn try_clone_to_owned ( & self ) -> crate :: io:: Result < OwnedFd > {
120120 Err ( crate :: io:: const_io_error!(
121121 crate :: io:: ErrorKind :: Unsupported ,
122- "operation not supported on WASI yet " ,
122+ "operation not supported on this platform " ,
123123 ) )
124124 }
125125}
0 commit comments