Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add futimens(2) and part utimensat(2)
details: https://anonhg.NetBSD.org/src/rev/7d64146c78b7
branches: trunk
changeset: 768452:7d64146c78b7
user: manu <manu%NetBSD.org@localhost>
date: Wed Aug 17 07:25:30 2011 +0000
description:
Add futimens(2) and part utimensat(2)
(missing bit from previous commit)
diffstat:
sys/sys/stat.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 973b03f45011 -r 7d64146c78b7 sys/sys/stat.h
--- a/sys/sys/stat.h Wed Aug 17 07:22:33 2011 +0000
+++ b/sys/sys/stat.h Wed Aug 17 07:25:30 2011 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index