summaryrefslogtreecommitdiff
path: root/gnulib/lib/utimens.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/lib/utimens.h')
m---------gnulib0
-rw-r--r--gnulib/lib/utimens.h19
2 files changed, 19 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/lib/utimens.h b/gnulib/lib/utimens.h
new file mode 100644
index 0000000..8c47cf9
--- /dev/null
+++ b/gnulib/lib/utimens.h
@@ -0,0 +1,19 @@
+#include <time.h>
+int fdutimens (int, char const *, struct timespec const [2]);
+int utimens (char const *, struct timespec const [2]);
+int lutimens (char const *, struct timespec const [2]);
+
+#if GNULIB_FDUTIMENSAT
+# include <fcntl.h>
+# include <sys/stat.h>
+
+int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
+ int atflag);
+
+/* Using this function makes application code slightly more readable. */
+static inline int
+lutimensat (int dir, char const *file, struct timespec const times[2])
+{
+ return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
+}
+#endif