Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Check for _NETBSD_SOURCE being defined wherever we c...
details: https://anonhg.NetBSD.org/src/rev/058b454659ad
branches: trunk
changeset: 783004:058b454659ad
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Dec 01 08:20:55 2012 +0000
description:
Check for _NETBSD_SOURCE being defined wherever we check for
_INCOMPLETE_XOPEN_C063 so that we expose the new POSIX extended API set
recently added.
diffstat:
sys/sys/fcntl.h | 9 +++++----
sys/sys/stat.h | 5 +++--
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r 613555b82813 -r 058b454659ad sys/sys/fcntl.h
--- a/sys/sys/fcntl.h Sat Dec 01 08:16:25 2012 +0000
+++ b/sys/sys/fcntl.h Sat Dec 01 08:20:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fcntl.h,v 1.43 2012/11/18 17:41:54 manu Exp $ */
+/* $NetBSD: fcntl.h,v 1.44 2012/12/01 08:20:55 skrll Exp $ */
/*-
* Copyright (c) 1983, 1990, 1993
@@ -115,7 +115,7 @@
#define O_DIRECTORY 0x00200000 /* fail if not a directory */
#define O_CLOEXEC 0x00400000 /* set close on exec */
#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \
- defined(_INCOMPLETE_XOPEN_C063) || defined(_KERNEL)
+ defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
#define O_SEARCH 0x00800000 /* skip search permission checks */
#endif
#if defined(_NETBSD_SOURCE)
@@ -292,7 +292,7 @@
* Constants for X/Open Extended API set 2 (a.k.a. C063)
*/
#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \
- defined(_INCOMPLETE_XOPEN_C063) || defined(_KERNEL)
+ defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
#define AT_FDCWD -100 /* Use cwd for relative link target */
#define AT_EACCESS 0x100 /* Use euig/egid for access checks */
#define AT_SYMLINK_NOFOLLOW 0x200 /* Do not follow symlinks */
@@ -316,7 +316,8 @@
/*
* X/Open Extended API set 2 (a.k.a. C063)
*/
-#if defined(_INCOMPLETE_XOPEN_C063)
+#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \
+ defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
int openat(int, const char *, int oflags, ...);
#endif
__END_DECLS
diff -r 613555b82813 -r 058b454659ad sys/sys/stat.h
--- a/sys/sys/stat.h Sat Dec 01 08:16:25 2012 +0000
+++ b/sys/sys/stat.h Sat Dec 01 08:20:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stat.h,v 1.64 2012/11/03 19:39:21 christos Exp $ */
+/* $NetBSD: stat.h,v 1.65 2012/12/01 08:20:55 skrll Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -244,7 +244,8 @@
/*
* X/Open Extended API set 2 (a.k.a. C063)
*/
-#if defined(_INCOMPLETE_XOPEN_C063)
+#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \
+ defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
int fstatat(int, const char *, struct stat *, int);
int utimensat(int, const char *, const struct timespec *, int);
#endif
Home |
Main Index |
Thread Index |
Old Index