bb0326da5fc23b00cffba7081410f09f4df960f3
[debian/gzip] / lib / utimens.h
1 #include <time.h>
2 int fdutimens (char const *, int, struct timespec const [2]);
3 int gl_futimens (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 dir, char const *name, int fd, struct timespec const [2]);
12
13 /* Using this function makes application code slightly more readable.  */
14 static inline int
15 lutimensat (int fd, char const *file, struct timespec const times[2])
16 {
17   return utimensat (fd, file, times, AT_SYMLINK_NOFOLLOW);
18 }
19 #endif