summaryrefslogtreecommitdiffstats
path: root/sys/sys/fcntl.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/fcntl.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/fcntl.h')
-rw-r--r--sys/sys/fcntl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
index b81f904..d5b29e6 100644
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -48,7 +48,7 @@
* related kernel definitions.
*/
-#ifndef KERNEL
+#ifndef _KERNEL
#include <sys/types.h>
#endif
@@ -70,7 +70,7 @@
* independently testable: 1 greater than the above.
*
* XXX
- * FREAD and FWRITE are excluded from the #ifdef KERNEL so that TIOCFLUSH,
+ * FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH,
* which was documented to use FREAD/FWRITE, continues to work.
*/
#ifndef _POSIX_SOURCE
@@ -89,7 +89,7 @@
#define O_CREAT 0x0200 /* create if nonexistent */
#define O_TRUNC 0x0400 /* truncate to zero length */
#define O_EXCL 0x0800 /* error if already exists */
-#ifdef KERNEL
+#ifdef _KERNEL
#define FMARK 0x1000 /* mark during gc() */
#define FDEFER 0x2000 /* defer for next gc pass */
#define FHASLOCK 0x4000 /* descriptor holds advisory lock */
@@ -98,7 +98,7 @@
/* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. */
#define O_NOCTTY 0x8000 /* don't assign controlling terminal */
-#ifdef KERNEL
+#ifdef _KERNEL
/* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */
#define FFLAGS(oflags) ((oflags) + 1)
#define OFLAGS(fflags) ((fflags) - 1)
@@ -148,7 +148,7 @@
#define F_RDLCK 1 /* shared or read lock */
#define F_UNLCK 2 /* unlock */
#define F_WRLCK 3 /* exclusive or write lock */
-#ifdef KERNEL
+#ifdef _KERNEL
#define F_WAIT 0x010 /* Wait until lock is granted */
#define F_FLOCK 0x020 /* Use flock(2) semantics for lock */
#define F_POSIX 0x040 /* Use POSIX semantics for lock */
@@ -176,7 +176,7 @@ struct flock {
#endif
-#ifndef KERNEL
+#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
OpenPOWER on IntegriCloud