Module Name: src
Committed By: manu
Date: Wed Aug 17 07:25:30 UTC 2011
Modified Files:
src/sys/sys: stat.h
Log Message:
Add futimens(2) and part utimensat(2)
(missing bit from previous commit)
To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/sys/stat.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/stat.h
diff -u src/sys/sys/stat.h:1.61 src/sys/sys/stat.h:1.62
--- src/sys/sys/stat.h:1.61 Mon Aug 8 12:08:54 2011
+++ src/sys/sys/stat.h Wed Aug 17 07:25:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: stat.h,v 1.61 2011/08/08 12:08:54 manu Exp $ */
+/* $NetBSD: stat.h,v 1.62 2011/08/17 07:25:30 manu Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -207,6 +207,12 @@
#endif /* _KERNEL */
#endif /* _NETBSD_SOURCE */
+/*
+ * Special values for utimensat and futimens
+ */
+#define UTIME_NOW ((1 << 30) - 1)
+#define UTIME_OMIT ((1 << 30) - 2)
+
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <sys/cdefs.h>
@@ -242,6 +248,8 @@
int utimensat(int, const char *, const struct timespec *, int);
#endif
+int futimens(int, const struct timespec *);
+
__END_DECLS
#endif /* !_KERNEL && !_STANDALONE */