From d53e4c1d809338e9b317d95bdded2f7f7a986556 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 29 Dec 1999 05:07:58 +0000 Subject: 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. --- sys/miscfs/fdesc/fdesc.h | 4 ++-- sys/miscfs/kernfs/kernfs.h | 4 ++-- sys/miscfs/nullfs/null.h | 4 ++-- sys/miscfs/portal/portal.h | 4 ++-- sys/miscfs/procfs/procfs.h | 4 ++-- sys/miscfs/umapfs/umap.h | 4 ++-- sys/miscfs/union/union.h | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) (limited to 'sys/miscfs') diff --git a/sys/miscfs/fdesc/fdesc.h b/sys/miscfs/fdesc/fdesc.h index 463e528..755149d 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 bb03fea..9f826d2 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 fcd179e..2b7ed51 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 6e78145..ec46662 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 1402a7c..f000026 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 856aeb9..eb562ed 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 3fb0b6e..a720d41 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 */ -- cgit v1.1