aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
commitc447342094276b4d604449bb776063c7b88c4992 (patch)
treeef56d86971063bc4ba98e49e723dab1d7ebf8a56 /sys/miscfs
parent664a31e4967a61ec61870f45adc2f1400617993e (diff)
downloadsrc-c447342094276b4d604449bb776063c7b88c4992.tar.gz
src-c447342094276b4d604449bb776063c7b88c4992.zip
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.
Notes
Notes: svn path=/head/; revision=55206
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fdesc/fdesc.h4
-rw-r--r--sys/miscfs/kernfs/kernfs.h4
-rw-r--r--sys/miscfs/nullfs/null.h4
-rw-r--r--sys/miscfs/portal/portal.h4
-rw-r--r--sys/miscfs/procfs/procfs.h4
-rw-r--r--sys/miscfs/umapfs/umap.h4
-rw-r--r--sys/miscfs/union/union.h4
7 files changed, 14 insertions, 14 deletions
diff --git a/sys/miscfs/fdesc/fdesc.h b/sys/miscfs/fdesc/fdesc.h
index 463e52836918..755149d2a46c 100644
--- a/sys/miscfs/fdesc/fdesc.h
+++ b/sys/miscfs/fdesc/fdesc.h
@@ -38,7 +38,7 @@
* $FreeBSD$
*/
-#ifdef KERNEL
+#ifdef _KERNEL
struct fdescmount {
struct vnode *f_root; /* Root node */
};
@@ -76,4 +76,4 @@ extern dev_t devctty;
extern int fdesc_init __P((struct vfsconf *));
extern int fdesc_root __P((struct mount *, struct vnode **));
extern int fdesc_allocvp __P((fdntype, int, struct mount *, struct vnode **));
-#endif /* KERNEL */
+#endif /* _KERNEL */
diff --git a/sys/miscfs/kernfs/kernfs.h b/sys/miscfs/kernfs/kernfs.h
index bb03fea02848..9f826d29cb54 100644
--- a/sys/miscfs/kernfs/kernfs.h
+++ b/sys/miscfs/kernfs/kernfs.h
@@ -39,7 +39,7 @@
#define _PATH_KERNFS "/kern" /* Default mountpoint */
-#ifdef KERNEL
+#ifdef _KERNEL
struct kernfs_mount {
struct vnode *kf_root; /* Root node */
};
@@ -53,4 +53,4 @@ struct kernfs_node {
extern vop_t **kernfs_vnodeop_p;
extern dev_t rrootdev;
-#endif /* KERNEL */
+#endif /* _KERNEL */
diff --git a/sys/miscfs/nullfs/null.h b/sys/miscfs/nullfs/null.h
index fcd179e73afb..2b7ed51d2427 100644
--- a/sys/miscfs/nullfs/null.h
+++ b/sys/miscfs/nullfs/null.h
@@ -47,7 +47,7 @@ struct null_mount {
struct vnode *nullm_rootvp; /* Reference to root null_node */
};
-#ifdef KERNEL
+#ifdef _KERNEL
/*
* A cache of vnode references
*/
@@ -73,4 +73,4 @@ extern struct vnode *null_checkvp __P((struct vnode *vp, char *fil, int lno));
extern int null_bypass __P((struct vop_generic_args *ap));
extern vop_t **null_vnodeop_p;
-#endif /* KERNEL */
+#endif /* _KERNEL */
diff --git a/sys/miscfs/portal/portal.h b/sys/miscfs/portal/portal.h
index 6e781455d75b..ec46662afd76 100644
--- a/sys/miscfs/portal/portal.h
+++ b/sys/miscfs/portal/portal.h
@@ -50,7 +50,7 @@ struct portal_cred {
gid_t pcr_groups[NGROUPS]; /* From ucred */
};
-#ifdef KERNEL
+#ifdef _KERNEL
struct portalmount {
struct vnode *pm_root; /* Root node */
struct file *pm_server; /* Held reference to server socket */
@@ -68,4 +68,4 @@ struct portalnode {
#define PORTAL_ROOTFILEID 2
extern vop_t **portal_vnodeop_p;
-#endif /* KERNEL */
+#endif /* _KERNEL */
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h
index 1402a7c82f2c..f0000267b5d7 100644
--- a/sys/miscfs/procfs/procfs.h
+++ b/sys/miscfs/procfs/procfs.h
@@ -83,7 +83,7 @@ struct pfsnode {
/*
* Kernel stuff follows
*/
-#ifdef KERNEL
+#ifdef _KERNEL
#define CNEQ(cnp, s, len) \
((cnp)->cn_namelen == (len) && \
(bcmp((s), (cnp)->cn_nameptr, (len)) == 0))
@@ -159,4 +159,4 @@ extern vop_t **procfs_vnodeop_p;
int procfs_root __P((struct mount *, struct vnode **));
int procfs_rw __P((struct vop_read_args *));
-#endif /* KERNEL */
+#endif /* _KERNEL */
diff --git a/sys/miscfs/umapfs/umap.h b/sys/miscfs/umapfs/umap.h
index 856aeb9365e9..eb562eda6722 100644
--- a/sys/miscfs/umapfs/umap.h
+++ b/sys/miscfs/umapfs/umap.h
@@ -62,7 +62,7 @@ struct umap_mount {
group mapping in ficus */
};
-#ifdef KERNEL
+#ifdef _KERNEL
/*
* A cache of vnode references
*/
@@ -88,4 +88,4 @@ extern struct vnode *umap_checkvp __P((struct vnode *vp, char *fil, int lno));
#endif
extern vop_t **umap_vnodeop_p;
-#endif /* KERNEL */
+#endif /* _KERNEL */
diff --git a/sys/miscfs/union/union.h b/sys/miscfs/union/union.h
index 3fb0b6e7e837..a720d411df87 100644
--- a/sys/miscfs/union/union.h
+++ b/sys/miscfs/union/union.h
@@ -56,7 +56,7 @@ struct union_mount {
int um_op; /* Operation mode */
};
-#ifdef KERNEL
+#ifdef _KERNEL
#ifndef DIAGNOSTIC
#define DIAGNOSTIC
@@ -152,4 +152,4 @@ extern vop_t **union_vnodeop_p;
extern struct vfsops union_vfsops;
extern int uniondebug;
-#endif /* KERNEL */
+#endif /* _KERNEL */