diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-02 21:39:14 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-09 18:43:12 -0800 |
| commit | 6bfbad937bdf578e35777d079f8dcfab49758041 (patch) | |
| tree | 7747a164d42ab277add29b2cee1fb98d8dc6db68 /src/libstd/sys/unix/c.rs | |
| parent | 0b56e9b1cb2fc00d7d9bc044e2a78b8fb12f2f1b (diff) | |
| download | rust-6bfbad937bdf578e35777d079f8dcfab49758041.tar.gz rust-6bfbad937bdf578e35777d079f8dcfab49758041.zip | |
std: Add a new `fs` module
This commit is an implementation of [RFC 739][rfc] which adds a new `std::fs` module to the standard library. This module provides much of the same functionality as `std::old_io::fs` but it has many tweaked APIs as well as uses the new `std::path` module. [rfc]: https://github.com/rust-lang/rfcs/pull/739
Diffstat (limited to 'src/libstd/sys/unix/c.rs')
| -rw-r--r-- | src/libstd/sys/unix/c.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/c.rs b/src/libstd/sys/unix/c.rs index 50a8e6b73e3..9b6ea3218ca 100644 --- a/src/libstd/sys/unix/c.rs +++ b/src/libstd/sys/unix/c.rs @@ -149,6 +149,9 @@ extern { buf: *mut libc::c_char, buflen: libc::size_t, result: *mut *mut passwd) -> libc::c_int; + + pub fn utimes(filename: *const libc::c_char, + times: *const libc::timeval) -> libc::c_int; } #[cfg(any(target_os = "macos", target_os = "ios"))] |
