summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-06-16 15:18:04 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-06-16 15:32:02 -0400
commit121c3171e5b4918337910250487691efa8dbbd49 (patch)
tree7b3e78726836b9ff0163d1291c7aabb7c2b136f2 /src/win32/posix.h
parente44abe16bd20512c76331e6889f390e35993153a (diff)
downloadlibgit2-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.h3
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);