about summary refs log tree commit diff
path: root/src/libstd/sys/unix/c.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-02-10 04:07:03 +0000
committerbors <bors@rust-lang.org>2015-02-10 04:07:03 +0000
commit0bfe358e0fe3b35f0434e81e7c53ea844e95cc13 (patch)
tree091fc970b94cf86a68fd62febef1c5648f5b0d9d /src/libstd/sys/unix/c.rs
parent134e00be7751a9fdc820981962e4fd7ea97bfff6 (diff)
parent6bfbad937bdf578e35777d079f8dcfab49758041 (diff)
downloadrust-0bfe358e0fe3b35f0434e81e7c53ea844e95cc13.tar.gz
rust-0bfe358e0fe3b35f0434e81e7c53ea844e95cc13.zip
Auto merge of #21936 - alexcrichton:fsv2, r=aturon
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.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/c.rs b/src/libstd/sys/unix/c.rs
index c27dbf6734a..cf05733cc18 100644
--- a/src/libstd/sys/unix/c.rs
+++ b/src/libstd/sys/unix/c.rs
@@ -154,6 +154,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"))]