Fix the MS-Windows build broken by 2012-06-22T21:17:42Z!eggert@cs.ucla.edu.
[bpt/emacs.git] / lib / utimens.h
1 #include <time.h>
2 #include <sys/time.h>
3 int fdutimens (int, char const *, struct timespec const [2]);
4 int utimens (char const *, struct timespec const [2]);
5 int lutimens (char const *, struct timespec const [2]);
6
7 #if GNULIB_FDUTIMENSAT
8 # include <fcntl.h>
9 # include <sys/stat.h>
10
11 int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
12 int atflag);
13
14 /* Using this function makes application code slightly more readable. */
15 static inline int
16 lutimensat (int dir, char const *file, struct timespec const times[2])
17 {
18 return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
19 }
20 #endif