]> git.cworth.org Git - tar/blob - gnu/utimens.h
Imported Upstream version 1.24
[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 (int, char const *, struct timespec const [2]);
5 int utimens (char const *, struct timespec const [2]);
6 int lutimens (char const *, struct timespec const [2]);
7
8 #if GNULIB_FDUTIMENSAT
9 # include <fcntl.h>
10 # include <sys/stat.h>
11
12 int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
13                  int atflag);
14
15 /* Using this function makes application code slightly more readable.  */
16 static inline int
17 lutimensat (int dir, char const *file, struct timespec const times[2])
18 {
19   return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
20 }
21 #endif