about summary refs log tree commit diff
diff options
context:
space:
mode:
authorB I Mohammed Abbas <bimohammadabbas@gmail.com>2025-05-14 13:52:23 +0530
committerB I Mohammed Abbas <bimohammadabbas@gmail.com>2025-05-14 13:52:31 +0530
commit544c8ce535c834d726b5dd252046aa5eeb1bf5ec (patch)
treed0ca6e550ec91e2eaa348eb97e6444fa3181368a
parente1f1878da550408e800742217881730c2b06d1ec (diff)
downloadrust-544c8ce535c834d726b5dd252046aa5eeb1bf5ec.tar.gz
rust-544c8ce535c834d726b5dd252046aa5eeb1bf5ec.zip
Fix settimes for vxworks
-rw-r--r--library/std/src/sys/fs/unix.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/fs/unix.rs b/library/std/src/sys/fs/unix.rs
index 863358596c1..a3e520fdeef 100644
--- a/library/std/src/sys/fs/unix.rs
+++ b/library/std/src/sys/fs/unix.rs
@@ -1498,11 +1498,10 @@ impl File {
             None => Ok(libc::timespec { tv_sec: 0, tv_nsec: libc::UTIME_OMIT as _ }),
         };
         cfg_if::cfg_if! {
-            if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "vxworks", target_os = "nuttx"))] {
+            if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "nuttx"))] {
                 // Redox doesn't appear to support `UTIME_OMIT`.
                 // ESP-IDF and HorizonOS do not support `futimens` at all and the behavior for those OS is therefore
                 // the same as for Redox.
-                // `futimens` and `UTIME_OMIT` are a work in progress for vxworks.
                 let _ = times;
                 Err(io::const_error!(
                     io::ErrorKind::Unsupported,