KERNEL -> _KERNEL

This commit is contained in:
briggs 1995-03-29 21:57:43 +00:00
parent 0884490297
commit 6efcd1b6d4
31 changed files with 73 additions and 73 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: printf.c,v 1.2 1994/10/26 05:36:52 cgd Exp $ */
/* $NetBSD: printf.c,v 1.3 1995/03/29 21:57:43 briggs Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -65,9 +65,9 @@
* Note that stdarg.h and the ANSI style va_start macro is used for both
* ANSI and traditional C compilers.
*/
#define KERNEL
#define _KERNEL
#include <machine/stdarg.h>
#undef KERNEL
#undef _KERNEL
static void kprintn __P((u_long, int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ether.h,v 1.13 1995/03/26 20:32:21 jtc Exp $ */
/* $NetBSD: if_ether.h,v 1.14 1995/03/29 22:09:27 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -146,7 +146,7 @@ struct sockaddr_inarp {
#define RTF_USETRAILERS RTF_PROTO1 /* use trailers */
#define RTF_ANNOUNCE RTF_PROTO2 /* announce new arp entry */
#ifdef KERNEL
#ifdef _KERNEL
u_char etherbroadcastaddr[6];
u_char ether_ipmulticast_min[6];
u_char ether_ipmulticast_max[6];

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdesc.h,v 1.7 1994/12/13 09:58:11 mycroft Exp $ */
/* $NetBSD: fdesc.h,v 1.8 1995/03/29 22:08:11 briggs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -40,7 +40,7 @@
* #Id: fdesc.h,v 1.8 1993/04/06 15:28:33 jsp Exp #
*/
#ifdef KERNEL
#ifdef _KERNEL
struct fdescmount {
struct vnode *f_root; /* Root node */
};
@ -80,4 +80,4 @@ extern int fdesc_root __P((struct mount *, struct vnode **));
extern int fdesc_allocvp __P((fdntype, int, struct mount *, struct vnode **));
extern int (**fdesc_vnodeop_p)();
extern struct vfsops fdesc_vfsops;
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: kernfs.h,v 1.8 1994/06/29 06:34:26 cgd Exp $ */
/* $NetBSD: kernfs.h,v 1.9 1995/03/29 22:08:22 briggs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -40,7 +40,7 @@
#define _PATH_KERNFS "/kern" /* Default mountpoint */
#ifdef KERNEL
#ifdef _KERNEL
struct kernfs_mount {
struct vnode *kf_root; /* Root node */
};
@ -55,4 +55,4 @@ struct kernfs_node {
extern int (**kernfs_vnodeop_p)();
extern struct vfsops kernfs_vfsops;
extern dev_t rrootdev;
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: null.h,v 1.3 1994/08/19 11:25:33 mycroft Exp $ */
/* $NetBSD: null.h,v 1.4 1995/03/29 22:08:24 briggs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -48,7 +48,7 @@ struct null_mount {
struct vnode *nullm_rootvp; /* Reference to root null_node */
};
#ifdef KERNEL
#ifdef _KERNEL
/*
* A cache of vnode references
*/
@ -72,4 +72,4 @@ extern struct vnode *null_checkvp __P((struct vnode *vp, char *fil, int lno));
extern int (**null_vnodeop_p)();
extern struct vfsops null_vfsops;
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: portal.h,v 1.4 1994/06/29 06:34:37 cgd Exp $ */
/* $NetBSD: portal.h,v 1.5 1995/03/29 22:08:26 briggs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -51,7 +51,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 */
@ -70,4 +70,4 @@ struct portalnode {
extern int (**portal_vnodeop_p)();
extern struct vfsops portal_vfsops;
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs.h,v 1.12 1994/10/29 07:58:53 cgd Exp $ */
/* $NetBSD: procfs.h,v 1.13 1995/03/29 22:08:30 briggs Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -75,7 +75,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))
@ -178,4 +178,4 @@ int procfs_print __P((struct vop_print_args *));
#define procfs_vfree ((int (*) __P((struct vop_vfree_args *))) nullop)
#define procfs_truncate ((int (*) __P((struct vop_truncate_args *))) procfs_badop)
#define procfs_update ((int (*) __P((struct vop_update_args *))) nullop)
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: umap.h,v 1.3 1994/08/19 11:25:40 mycroft Exp $ */
/* $NetBSD: umap.h,v 1.4 1995/03/29 22:09:57 briggs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -63,7 +63,7 @@ struct umap_mount {
group mapping in ficus */
};
#ifdef KERNEL
#ifdef _KERNEL
/*
* A cache of vnode references
*/
@ -89,4 +89,4 @@ extern struct vnode *umap_checkvp __P((struct vnode *vp, char *fil, int lno));
extern int (**umap_vnodeop_p)();
extern struct vfsops umap_vfsops;
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: union.h,v 1.6 1994/12/29 22:48:16 mycroft Exp $ */
/* $NetBSD: union.h,v 1.7 1995/03/29 22:08:37 briggs Exp $ */
/*
* Copyright (c) 1994 The Regents of the University of California.
@ -57,7 +57,7 @@ struct union_mount {
int um_op; /* Operation mode */
};
#ifdef KERNEL
#ifdef _KERNEL
/*
* DEFDIRMODE is the mode bits used to create a shadow directory.
@ -128,4 +128,4 @@ extern void union_newsize __P((struct vnode *, off_t, off_t));
extern int (**union_vnodeop_p)();
extern struct vfsops union_vfsops;
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: denode.h,v 1.13 1995/01/04 06:32:19 mycroft Exp $ */
/* $NetBSD: denode.h,v 1.14 1995/03/29 22:08:46 briggs Exp $ */
/*-
* Copyright (C) 1994 Wolfgang Solfrank.
@ -193,7 +193,7 @@ struct denode {
#define de_forw de_chain[0]
#define de_back de_chain[1]
#ifdef KERNEL
#ifdef _KERNEL
#define VTODE(vp) ((struct denode *)(vp)->v_data)
#define DETOV(de) ((de)->de_vnode)
@ -276,4 +276,4 @@ int readde __P((struct denode *, struct buf **, struct direntry **));
int readep __P((struct msdosfsmount *, u_long, u_long, struct buf **, struct direntry **));
void reinsert __P((struct denode *));
int removede __P((struct denode *, struct denode *));
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: direntry.h,v 1.8 1994/10/29 07:59:31 cgd Exp $ */
/* $NetBSD: direntry.h,v 1.9 1995/03/29 22:08:52 briggs Exp $ */
/*-
* Copyright (C) 1994 Wolfgang Solfrank.
@ -95,9 +95,9 @@ struct direntry {
#define DD_YEAR_MASK 0xFE00 /* year - 1980 */
#define DD_YEAR_SHIFT 9
#ifdef KERNEL
#ifdef _KERNEL
void unix2dostime __P((struct timespec *tsp, u_int16_t *ddp, u_int16_t *dtp));
void dos2unixtime __P((u_int dd, u_int dt, struct timespec *tsp));
int dos2unixfn __P((u_char dn[11], u_char *un));
void unix2dosfn __P((u_char *un, u_char dn[11], int unlen));
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: fat.h,v 1.5 1994/09/28 11:31:25 mycroft Exp $ */
/* $NetBSD: fat.h,v 1.6 1995/03/29 22:08:56 briggs Exp $ */
/*-
* Copyright (C) 1994 Wolfgang Solfrank.
@ -73,7 +73,7 @@
#define MSDOSFSEOF(cn) (((cn) & 0xfff8) == 0xfff8)
#ifdef KERNEL
#ifdef _KERNEL
/*
* These are the values for the function argument to the function
* fatentry().
@ -96,4 +96,4 @@ void fc_purge __P((struct denode *, u_int));
void fc_lookup __P((struct denode *, u_long, u_long *, u_long *));
int fillinusemap __P((struct msdosfsmount *));
int freeclusterchain __P((struct msdosfsmount *, u_long));
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_arc.h,v 1.2 1995/03/02 09:14:38 chopps Exp $ */
/* $NetBSD: if_arc.h,v 1.3 1995/03/29 22:09:23 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -75,7 +75,7 @@ struct arccom {
struct in_addr ac_ipaddr; /* copy of ip address- XXX */
};
#ifdef KERNEL
#ifdef _KERNEL
u_char arcbroadcastaddr;
void arc_ifattach __P((struct ifnet *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: llc_var.h,v 1.3 1995/03/08 02:13:59 cgd Exp $ */
/* $NetBSD: llc_var.h,v 1.4 1995/03/29 22:09:12 briggs Exp $ */
/*
* Copyright (C) Dirk Husemann, Computer Science Department IV,
@ -575,7 +575,7 @@ struct sdl_hdr {
#define LLC_AGE_TIMER 40 /* 20 secs */
#define LLC_DACTION_TIMER 2 /* 1 secs */
#if defined (KERNEL) && defined(LLC)
#if defined (_KERNEL) && defined(LLC)
extern int llc_n2;
extern int llc_ACK_timer;
extern int llc_P_timer;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_arc.h,v 1.2 1995/03/02 09:14:38 chopps Exp $ */
/* $NetBSD: if_arc.h,v 1.3 1995/03/29 22:09:23 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -75,7 +75,7 @@ struct arccom {
struct in_addr ac_ipaddr; /* copy of ip address- XXX */
};
#ifdef KERNEL
#ifdef _KERNEL
u_char arcbroadcastaddr;
void arc_ifattach __P((struct ifnet *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_arp.h,v 1.13 1995/03/26 20:32:21 jtc Exp $ */
/* $NetBSD: if_arp.h,v 1.14 1995/03/29 22:09:27 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -146,7 +146,7 @@ struct sockaddr_inarp {
#define RTF_USETRAILERS RTF_PROTO1 /* use trailers */
#define RTF_ANNOUNCE RTF_PROTO2 /* announce new arp entry */
#ifdef KERNEL
#ifdef _KERNEL
u_char etherbroadcastaddr[6];
u_char ether_ipmulticast_min[6];
u_char ether_ipmulticast_max[6];

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ether.h,v 1.13 1995/03/26 20:32:21 jtc Exp $ */
/* $NetBSD: if_ether.h,v 1.14 1995/03/29 22:09:27 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -146,7 +146,7 @@ struct sockaddr_inarp {
#define RTF_USETRAILERS RTF_PROTO1 /* use trailers */
#define RTF_ANNOUNCE RTF_PROTO2 /* announce new arp entry */
#ifdef KERNEL
#ifdef _KERNEL
u_char etherbroadcastaddr[6];
u_char ether_ipmulticast_min[6];
u_char ether_ipmulticast_max[6];

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_inarp.h,v 1.13 1995/03/26 20:32:21 jtc Exp $ */
/* $NetBSD: if_inarp.h,v 1.14 1995/03/29 22:09:27 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -146,7 +146,7 @@ struct sockaddr_inarp {
#define RTF_USETRAILERS RTF_PROTO1 /* use trailers */
#define RTF_ANNOUNCE RTF_PROTO2 /* announce new arp entry */
#ifdef KERNEL
#ifdef _KERNEL
u_char etherbroadcastaddr[6];
u_char ether_ipmulticast_min[6];
u_char ether_ipmulticast_max[6];

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_var.h,v 1.9 1995/03/26 20:32:27 jtc Exp $ */
/* $NetBSD: in_var.h,v 1.10 1995/03/29 22:09:30 briggs Exp $ */
/*
* Copyright (c) 1985, 1986, 1993
@ -76,7 +76,7 @@ struct in_aliasreq {
((ntohl((in).s_addr) & ~((struct in_ifaddr *)(ifa)->ia_subnetmask))
#ifdef KERNEL
#ifdef _KERNEL
extern struct in_ifaddr *in_ifaddr;
extern struct ifqueue ipintrq; /* ip packet input queue */
void in_socktrim __P((struct sockaddr_in *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: clnp.h,v 1.7 1995/03/26 20:35:13 jtc Exp $ */
/* $NetBSD: clnp.h,v 1.8 1995/03/29 22:09:39 briggs Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -453,7 +453,7 @@ struct clnp_cache {
((struct sockaddr_iso *)(sa))
#endif
#ifdef KERNEL
#ifdef _KERNEL
caddr_t clnp_insert_addr();
struct iso_addr *clnp_srcaddr();
struct mbuf *clnp_reass();

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons.h,v 1.6 1995/03/26 20:35:17 jtc Exp $ */
/* $NetBSD: cons.h,v 1.7 1995/03/29 22:09:44 briggs Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -72,7 +72,7 @@ struct dte_addr {
u_char dtea_niblen;
};
#ifdef KERNEL
#ifdef _KERNEL
#define CONN_OPEN 0x33
#define CONN_CONFIRM 0x30

View File

@ -1,4 +1,4 @@
/* $NetBSD: esis.h,v 1.7 1995/03/26 20:35:20 jtc Exp $ */
/* $NetBSD: esis.h,v 1.8 1995/03/29 22:09:46 briggs Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -114,6 +114,6 @@ struct esis_stat {
u_short es_rdrcvd; /* RD rcvd */
};
#ifdef KERNEL
#ifdef _KERNEL
struct esis_stat esis_stat;
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: iso_snpac.h,v 1.6 1995/03/26 20:35:25 jtc Exp $ */
/* $NetBSD: iso_snpac.h,v 1.7 1995/03/29 22:09:47 briggs Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -109,6 +109,6 @@ struct llinfo_llc {
#define SIOCSSTYPE _IOW('a', 39, struct systype_req) /* set system type */
#define SIOCGSTYPE _IOR('a', 40, struct systype_req) /* get system type */
#ifdef KERNEL
#ifdef _KERNEL
struct llinfo_llc llinfo_llc; /* head for linked lists */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ns_if.h,v 1.5 1994/06/29 06:41:39 cgd Exp $ */
/* $NetBSD: ns_if.h,v 1.6 1995/03/29 22:09:50 briggs Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@ -77,7 +77,7 @@ struct nsip_req {
};
#endif
#ifdef KERNEL
#ifdef _KERNEL
struct ns_ifaddr *ns_ifaddr;
struct ns_ifaddr *ns_iaonnetof();
struct ifqueue nsintrq; /* XNS input packet queue */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ktrace.h,v 1.9 1995/03/26 20:24:18 jtc Exp $ */
/* $NetBSD: ktrace.h,v 1.10 1995/03/29 22:09:58 briggs Exp $ */
/*
* Copyright (c) 1988, 1993
@ -147,7 +147,7 @@ struct ktr_csw {
#define KTRFAC_INHERIT 0x40000000 /* pass trace flags to children */
#define KTRFAC_ACTIVE 0x20000000 /* ktrace logging in progress, ignore */
#ifndef KERNEL
#ifndef _KERNEL
#include <sys/cdefs.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: mbuf.h,v 1.13 1994/10/30 19:08:35 cgd Exp $ */
/* $NetBSD: mbuf.h,v 1.14 1995/03/29 22:10:01 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -353,7 +353,7 @@ struct mbstat {
u_short m_mtypes[256]; /* type specific mbuf allocations */
};
#ifdef KERNEL
#ifdef _KERNEL
extern struct mbuf *mbutl; /* virtual address of mclusters */
extern char *mclrefcnt; /* cluster reference counts */
struct mbstat mbstat;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtio.h,v 1.11 1995/03/26 20:24:28 jtc Exp $ */
/* $NetBSD: mtio.h,v 1.12 1995/03/29 22:10:07 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -121,7 +121,7 @@ struct mtget {
#define DEFTAPE "/dev/rst0"
#endif
#ifdef KERNEL
#ifdef _KERNEL
/*
* minor device number
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: socket.h,v 1.11 1995/03/26 20:24:45 jtc Exp $ */
/* $NetBSD: socket.h,v 1.12 1995/03/29 22:10:11 briggs Exp $ */
/*
* Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
@ -312,7 +312,7 @@ struct omsghdr {
int msg_accrightslen;
};
#ifndef KERNEL
#ifndef _KERNEL
#include <sys/cdefs.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.h,v 1.7 1995/03/26 20:24:49 jtc Exp $ */
/* $NetBSD: sysctl.h,v 1.8 1995/03/29 22:10:15 briggs Exp $ */
/*
* Copyright (c) 1989, 1993
@ -288,7 +288,7 @@ struct kinfo_proc {
#define CTL_DEBUG_VALUE 1 /* int: variable value */
#define CTL_DEBUG_MAXID 20
#ifdef KERNEL
#ifdef _KERNEL
#ifdef DEBUG
/*
* CTL_DEBUG variables.

View File

@ -1,4 +1,4 @@
/* $NetBSD: uio.h,v 1.9 1995/03/26 20:25:00 jtc Exp $ */
/* $NetBSD: uio.h,v 1.10 1995/03/29 22:10:18 briggs Exp $ */
/*
* Copyright (c) 1982, 1986, 1993, 1994
@ -73,7 +73,7 @@ struct uio {
#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */
#endif /* _KERNEL */
#ifndef KERNEL
#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_object.h,v 1.15 1995/03/26 20:39:12 jtc Exp $ */
/* $NetBSD: vm_object.h,v 1.16 1995/03/29 22:10:28 briggs Exp $ */
/*
* Copyright (c) 1991, 1993
@ -115,7 +115,7 @@ struct vm_object_hash_entry {
typedef struct vm_object_hash_entry *vm_object_hash_entry_t;
#ifdef KERNEL
#ifdef _KERNEL
TAILQ_HEAD(object_q, vm_object);
struct object_q vm_object_cached_list; /* list of objects persisting */