about summary refs log tree commit diff
path: root/library/std/src/sys/unix/fd.rs
diff options
context:
space:
mode:
authorNikolay Arhipov <n@arhipov.net>2023-06-04 17:44:43 +0300
committerNikolay Arhipov <n@arhipov.net>2023-06-05 19:14:09 +0300
commit50117af409ada03f7ee895c12e0009060f8ba4c1 (patch)
tree83a8eaa50c78ef150caa34043a58788918722b94 /library/std/src/sys/unix/fd.rs
parent7452822843cf461b56742f0fc648af35889a3070 (diff)
downloadrust-50117af409ada03f7ee895c12e0009060f8ba4c1.tar.gz
rust-50117af409ada03f7ee895c12e0009060f8ba4c1.zip
Std support improvement for ps vita target
Diffstat (limited to 'library/std/src/sys/unix/fd.rs')
-rw-r--r--library/std/src/sys/unix/fd.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/library/std/src/sys/unix/fd.rs b/library/std/src/sys/unix/fd.rs
index cb630eede6d..69c93c92003 100644
--- a/library/std/src/sys/unix/fd.rs
+++ b/library/std/src/sys/unix/fd.rs
@@ -402,7 +402,10 @@ impl FileDesc {
         }
     }
     #[cfg(any(
-        all(target_env = "newlib", not(any(target_os = "espidf", target_os = "horizon"))),
+        all(
+            target_env = "newlib",
+            not(any(target_os = "espidf", target_os = "horizon", target_os = "vita"))
+        ),
         target_os = "solaris",
         target_os = "illumos",
         target_os = "emscripten",
@@ -424,10 +427,10 @@ impl FileDesc {
             Ok(())
         }
     }
-    #[cfg(any(target_os = "espidf", target_os = "horizon"))]
+    #[cfg(any(target_os = "espidf", target_os = "horizon", target_os = "vita"))]
     pub fn set_cloexec(&self) -> io::Result<()> {
-        // FD_CLOEXEC is not supported in ESP-IDF and Horizon OS but there's no need to,
-        // because neither supports spawning processes.
+        // FD_CLOEXEC is not supported in ESP-IDF, Horizon OS and Vita but there's no need to,
+        // because none of them supports spawning processes.
         Ok(())
     }