summaryrefslogtreecommitdiffstats
path: root/sys/sys/stat.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-29 04:46:21 +0000
committerpeter <peter@FreeBSD.org>1999-12-29 04:46:21 +0000
commit15b9bcb121e1f3735a2c98a11afdb52a03301d7e (patch)
treee999c95eb5db56737efc17feeb385a77941021bb /sys/sys/stat.h
parent9ed7cb48bf4a00a23e7489706b0effe1c516cb5b (diff)
downloadFreeBSD-src-15b9bcb121e1f3735a2c98a11afdb52a03301d7e.zip
FreeBSD-src-15b9bcb121e1f3735a2c98a11afdb52a03301d7e.tar.gz
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
Diffstat (limited to 'sys/sys/stat.h')
-rw-r--r--sys/sys/stat.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 14a7a50..21cfbc4 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -42,7 +42,7 @@
#ifndef _SYS_STAT_H_
#define _SYS_STAT_H_
-#if !defined(KERNEL) && !defined(_POSIX_SOURCE)
+#if !defined(_KERNEL) && !defined(_POSIX_SOURCE)
/*
* XXX we need this for struct timespec. We get miscellaneous namespace
* pollution with it.
@@ -50,7 +50,7 @@
#include <sys/time.h>
#endif
-#ifdef KERNEL
+#ifdef _KERNEL
#define __dev_t udev_t
#else
#define __dev_t dev_t
@@ -223,7 +223,7 @@ struct nstat {
#define SF_APPEND 0x00040000 /* writes to file may only append */
#define SF_NOUNLINK 0x00100000 /* file may not be removed or renamed */
-#ifdef KERNEL
+#ifdef _KERNEL
/*
* Shorthand abbreviations of above.
*/
@@ -235,7 +235,7 @@ struct nstat {
#endif /* !_POSIX_SOURCE */
-#ifndef KERNEL
+#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
@@ -255,6 +255,6 @@ int lstat __P((const char *, struct stat *));
#endif
__END_DECLS
-#endif /* !KERNEL */
+#endif /* !_KERNEL */
#endif /* !_SYS_STAT_H_ */
OpenPOWER on IntegriCloud