Imported Upstream version 1.5
[debian/gzip] / lib / utimens.h
1 #include <time.h>
2 int fdutimens (int, char const *, struct timespec const [2]);
3 int utimens (char const *, struct timespec const [2]);
4 int lutimens (char const *, struct timespec const [2]);
5
6 #if GNULIB_FDUTIMENSAT
7 # include <fcntl.h>
8 # include <sys/stat.h>
9
10 int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
11                  int atflag);
12
13 /* Using this function makes application code slightly more readable.  */
14 static inline int
15 lutimensat (int dir, char const *file, struct timespec const times[2])
16 {
17   return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
18 }
19 #endif