summaryrefslogtreecommitdiff
path: root/src/unix
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/unix
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/unix')
-rw-r--r--src/unix/posix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h
index 35bd431b8..425e6bb1b 100644
--- a/src/unix/posix.h
+++ b/src/unix/posix.h
@@ -19,6 +19,9 @@ typedef int GIT_SOCKET;
#define p_lstat(p,b) lstat(p,b)
#define p_stat(p,b) stat(p, b)
+#define p_utimes(f, t) utimes(f, t)
+#define p_futimes(f, t) futimes(f, t)
+
#define p_readlink(a, b, c) readlink(a, b, c)
#define p_symlink(o,n) symlink(o, n)
#define p_link(o,n) link(o, n)
@@ -26,7 +29,6 @@ typedef int GIT_SOCKET;
#define p_mkdir(p,m) mkdir(p, m)
#define p_fsync(fd) fsync(fd)
extern char *p_realpath(const char *, char *);
-#define p_utimensat(fd, path, times, flags) utimensat(fd, path, times, flags)
#define p_recv(s,b,l,f) recv(s,b,l,f)
#define p_send(s,b,l,f) send(s,b,l,f)