? cscope.out Index: sys/fcntl.h =================================================================== RCS file: /cvsroot/src/sys/sys/fcntl.h,v retrieving revision 1.43 diff -u -p -u -r1.43 fcntl.h --- sys/fcntl.h 18 Nov 2012 17:41:54 -0000 1.43 +++ sys/fcntl.h 30 Nov 2012 12:49:50 -0000 @@ -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 @@ struct flock { * 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,7 @@ int posix_fadvise(int, off_t, off_t, int /* * X/Open Extended API set 2 (a.k.a. C063) */ -#if defined(_INCOMPLETE_XOPEN_C063) +#if defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE) int openat(int, const char *, int oflags, ...); #endif __END_DECLS Index: sys/stat.h =================================================================== RCS file: /cvsroot/src/sys/sys/stat.h,v retrieving revision 1.64 diff -u -p -u -r1.64 stat.h --- sys/stat.h 3 Nov 2012 19:39:21 -0000 1.64 +++ sys/stat.h 30 Nov 2012 12:49:50 -0000 @@ -244,7 +244,7 @@ int lchmod(const char *, mode_t); /* * X/Open Extended API set 2 (a.k.a. C063) */ -#if defined(_INCOMPLETE_XOPEN_C063) +#if 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