diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-06-16 15:18:04 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-06-16 15:32:02 -0400 |
commit | 121c3171e5b4918337910250487691efa8dbbd49 (patch) | |
tree | 7b3e78726836b9ff0163d1291c7aabb7c2b136f2 /src/win32/posix.h | |
parent | e44abe16bd20512c76331e6889f390e35993153a (diff) | |
download | libgit2-121c3171e5b4918337910250487691efa8dbbd49.tar.gz |
Introduce p_utimes and p_futimes
Provide functionality to set the time on a filesystem entry,
using utimes or futimes on POSIX type systems or SetFileTime
on Win32.
Diffstat (limited to 'src/win32/posix.h')
-rw-r--r-- | src/win32/posix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h index bf35c8125..ac98fd864 100644 --- a/src/win32/posix.h +++ b/src/win32/posix.h @@ -20,6 +20,9 @@ typedef SOCKET GIT_SOCKET; extern int p_lstat(const char *file_name, struct stat *buf); extern int p_stat(const char* path, struct stat* buf); +extern int p_utimes(const char *filename, const struct timeval times[2]); +extern int p_futimes(int fd, const struct timeval times[2]); + extern int p_readlink(const char *path, char *buf, size_t bufsiz); extern int p_symlink(const char *old, const char *new); extern int p_link(const char *old, const char *new); |