rust/library/std/src/sys/wasi
bors 1f5d8d49eb Auto merge of #98246 - joshtriplett:times, r=m-ou-se
Support setting file accessed/modified timestamps

Add `struct FileTimes` to contain the relevant file timestamps, since
most platforms require setting all of them at once. (This also allows
for future platform-specific extensions such as setting creation time.)

Add `File::set_file_time` to set the timestamps for a `File`.

Implement the `sys` backends for UNIX, macOS (which needs to fall back
to `futimes` before macOS 10.13 because it lacks `futimens`), Windows,
and WASI.
2022-08-01 06:44:43 +00:00
..
args.rs Auto merge of #84115 - CDirkx:rt, r=m-ou-se 2021-04-25 04:45:39 +00:00
env.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
fd.rs wasi: enable TcpListener and TcpStream 2022-01-28 13:27:30 +01:00
fs.rs Support setting file accessed/modified timestamps 2022-07-15 02:54:06 -07:00
io.rs Applied #![deny(unsafe_op_in_unsafe_fn)] in library/std/src/wasi 2020-09-03 08:27:59 +08:00
mod.rs Move std::sys::{mutex, condvar, rwlock} to std::sys::locks. 2022-03-22 18:19:47 +01:00
net.rs Remove socklen_t from platforms where it's no longer used 2022-07-30 02:42:02 +02:00
os.rs Make getenv return an Option instead of a Result 2021-07-05 22:19:23 -07:00
stdio.rs wasi: update to wasi 0.11.0 2022-01-28 13:27:29 +01:00
thread.rs wasi: update to wasi 0.11.0 2022-01-28 13:27:29 +01:00
time.rs Support setting file accessed/modified timestamps 2022-07-15 02:54:06 -07:00