]> git.cworth.org Git - tar/blob - gnu/utimens.h
37f92b734db3c438b31a9f48ba6df578667e83eb
[tar] / gnu / utimens.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 #include <time.h>
4 int fdutimens (char const *, int, struct timespec const [2]);
5 int gl_futimens (int, char const *, struct timespec const [2]);
6 int utimens (char const *, struct timespec const [2]);
7 int lutimens (char const *, struct timespec const [2]);
8
9 #if GNULIB_FDUTIMENSAT
10 # include <fcntl.h>
11 # include <sys/stat.h>
12
13 int fdutimensat (int dir, char const *name, int fd, struct timespec const [2]);
14
15 /* Using this function makes application code slightly more readable.  */
16 static inline int
17 lutimensat (int fd, char const *file, struct timespec const times[2])
18 {
19   return utimensat (fd, file, times, AT_SYMLINK_NOFOLLOW);
20 }
21 #endif