From 384f7c422acca2f3658393abfc16ea57cd74caa6 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sun, 21 Feb 2016 19:22:26 -0500 Subject: Implement utimens --- src/posix_extras.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/posix_extras.h') diff --git a/src/posix_extras.h b/src/posix_extras.h index 60b2284..a73f9fe 100644 --- a/src/posix_extras.h +++ b/src/posix_extras.h @@ -21,6 +21,7 @@ #include #include #include +#include namespace scoville { @@ -81,6 +82,12 @@ class File { // must indeed be relative (i.e., it must not start with '/'). void UnlinkAt(const char* path) const; + // Sets the access and modification times of the file at the path relative to + // the file descriptor. The path must indeed be relative (i.e., it must not + // start with '/'). Does not follow symbolic links. + void UTimeNs(const char* path, const timespec& access, + const timespec& modification) const; + private: File() {} -- cgit v1.2.3