KERNEL -> _KERNEL

This commit is contained in:
jtc 1995-03-28 19:59:56 +00:00
parent 8ba211cde0
commit db0046c14d
12 changed files with 49 additions and 49 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disksubr.c,v 1.18 1995/02/12 19:18:36 chopps Exp $ */
/* $NetBSD: disksubr.c,v 1.19 1995/03/28 19:59:56 jtc Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -139,7 +139,7 @@ readdisklabel(dev, strat, lp, clp)
/*
* request no partition relocation by driver on I/O operations
*/
#ifdef KERNEL
#ifdef _KERNEL
bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART);
#else
bp->b_dev = dev;

View File

@ -1,4 +1,4 @@
/* $NetBSD: raster_op.c,v 1.2 1994/11/20 20:53:47 deraadt Exp $ */
/* $NetBSD: raster_op.c,v 1.3 1995/03/28 20:00:30 jtc Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -63,7 +63,7 @@
** logical operations. With this variable set, the only operations implemented
** are: RAS_SRC, RAS_CLEAR, RAS_SET, RAS_INVERT, RAS_XOR, RAS_INVERTSRC.
*/
#ifdef KERNEL
#ifdef _KERNEL
#define PARTIAL_LOGICAL_OPS
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: raster_text.c,v 1.2 1994/11/20 20:53:48 deraadt Exp $ */
/* $NetBSD: raster_text.c,v 1.3 1995/03/28 20:00:38 jtc Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -43,7 +43,7 @@
* Text routines for raster library.
*/
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/param.h>
#include <sparc/rcons/raster.h>
#ifdef COLORFONT_CACHE

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons_font.c,v 1.3 1994/11/20 20:53:49 deraadt Exp $ */
/* $NetBSD: rcons_font.c,v 1.4 1995/03/28 20:00:39 jtc Exp $ */
/*
* Copyright (c) 1991, 1993
@ -44,7 +44,7 @@
* @(#)rcons_font.c 8.1 (Berkeley) 6/11/93
*/
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/device.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons_subr.c,v 1.3 1994/11/20 20:53:53 deraadt Exp $ */
/* $NetBSD: rcons_subr.c,v 1.4 1995/03/28 20:00:41 jtc Exp $ */
/*
* Copyright (c) 1991, 1993
@ -44,7 +44,7 @@
* @(#)rcons_subr.c 8.1 (Berkeley) 6/11/93
*/
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/param.h>
#include <sys/device.h>
#include <machine/fbio.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr.c,v 1.12 1995/02/01 09:32:45 mycroft Exp $ */
/* $NetBSD: ncr.c,v 1.13 1995/03/28 20:00:53 jtc Exp $ */
/**************************************************************************
**
@ -152,13 +152,13 @@
#include <sys/time.h>
#include <sys/proc.h>
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/buf.h>
#include <sys/kernel.h>
#include <vm/vm.h>
#endif /* KERNEL */
#endif /* _KERNEL */
#include <dev/pci/ncr_reg.h>
@ -345,7 +345,7 @@
#endif /*__FreeBSD__*/
#ifdef ANCIENT
#ifdef KERNEL
#ifdef _KERNEL
extern int splbio(void);
extern void splx(int level);
extern int wakeup(void* channel);
@ -354,7 +354,7 @@
extern int scsi_attachdevs();
extern void timeout();
extern void untimeout();
#endif /* KERNEL */
#endif /* _KERNEL */
#define bio_imask biomask
#define LUN lu
#define TARGET targ
@ -1145,7 +1145,7 @@ struct script {
**==========================================================
*/
#ifdef KERNEL
#ifdef _KERNEL
void ncr_alloc_ccb (ncb_p np, struct scsi_xfer * xp);
void ncr_complete (ncb_p np, ccb_p cp);
int ncr_delta (struct timeval * from, struct timeval * to);
@ -1191,7 +1191,7 @@ char* ncr_probe (pcici_t tag, pcidi_t type);
void ncr_attach (pcici_t tag, int unit);
#endif /* __NetBSD__ */
#endif /* KERNEL */
#endif /* _KERNEL */
/*==========================================================
**
@ -1204,7 +1204,7 @@ void ncr_attach (pcici_t tag, int unit);
static char ident[] =
"\n$Id: ncr.c,v 1.12 1995/02/01 09:32:45 mycroft Exp $\n";
"\n$Id: ncr.c,v 1.13 1995/03/28 20:00:53 jtc Exp $\n";
u_long ncr_version = NCR_VERSION
+ (u_long) sizeof (struct ncb)
@ -1212,7 +1212,7 @@ u_long ncr_version = NCR_VERSION
* (u_long) sizeof (struct lcb)
* (u_long) sizeof (struct tcb);
#ifdef KERNEL
#ifdef _KERNEL
#ifndef __NetBSD__
u_long nncr=MAX_UNITS;
@ -3314,7 +3314,7 @@ void ncr_attach (pcici_t config_id, int unit)
ncr_name (np));
DELAY (1000000);
#endif
printf ("%s scanning for targets 0..%d ($Revision: 1.12 $)\n",
printf ("%s scanning for targets 0..%d ($Revision: 1.13 $)\n",
ncr_name (np), MAX_TARGET-1);
/*
@ -6512,6 +6512,6 @@ void ncr_getclock (ncb_p np)
}
/*=========================================================================*/
#endif /* KERNEL */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcount.c,v 1.2 1994/10/26 06:42:32 cgd Exp $ */
/* $NetBSD: mcount.c,v 1.3 1995/03/28 20:01:02 jtc Exp $ */
/*-
* Copyright (c) 1983, 1992, 1993
@ -33,7 +33,7 @@
* SUCH DAMAGE.
*/
#if !defined(lint) && !defined(KERNEL) && defined(LIBC_SCCS)
#if !defined(lint) && !defined(_KERNEL) && defined(LIBC_SCCS)
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#endif
@ -62,7 +62,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
register struct tostruct *top, *prevtop;
register struct gmonparam *p;
register long toindex;
#ifdef KERNEL
#ifdef _KERNEL
register int s;
#endif
@ -73,7 +73,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
*/
if (p->state != GMON_PROF_ON)
return;
#ifdef KERNEL
#ifdef _KERNEL
MCOUNT_ENTER;
#else
p->state = GMON_PROF_BUSY;
@ -159,7 +159,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
}
done:
#ifdef KERNEL
#ifdef _KERNEL
MCOUNT_EXIT;
#else
p->state = GMON_PROF_ON;
@ -167,7 +167,7 @@ done:
return;
overflow:
p->state = GMON_PROF_ERROR;
#ifdef KERNEL
#ifdef _KERNEL
MCOUNT_EXIT;
#endif
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: bpf_filter.c,v 1.8 1995/03/06 10:58:25 mycroft Exp $ */
/* $NetBSD: bpf_filter.c,v 1.9 1995/03/28 20:01:10 jtc Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993
@ -67,7 +67,7 @@
(u_int32_t)*((u_char *)p+3)<<0)
#endif
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/mbuf.h>
#define MINDEX(m, k) \
{ \
@ -193,7 +193,7 @@ bpf_filter(pc, p, wirelen, buflen)
switch (pc->code) {
default:
#ifdef KERNEL
#ifdef _KERNEL
return 0;
#else
abort();
@ -207,7 +207,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LD|BPF_W|BPF_ABS:
k = pc->k;
if (k + sizeof(int32_t) > buflen) {
#ifdef KERNEL
#ifdef _KERNEL
int merr;
if (buflen != 0)
@ -226,7 +226,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LD|BPF_H|BPF_ABS:
k = pc->k;
if (k + sizeof(short) > buflen) {
#ifdef KERNEL
#ifdef _KERNEL
int merr;
if (buflen != 0)
@ -243,7 +243,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LD|BPF_B|BPF_ABS:
k = pc->k;
if (k >= buflen) {
#ifdef KERNEL
#ifdef _KERNEL
register struct mbuf *m;
if (buflen != 0)
@ -270,7 +270,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LD|BPF_W|BPF_IND:
k = X + pc->k;
if (k + sizeof(int32_t) > buflen) {
#ifdef KERNEL
#ifdef _KERNEL
int merr;
if (buflen != 0)
@ -289,7 +289,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LD|BPF_H|BPF_IND:
k = X + pc->k;
if (k + sizeof(short) > buflen) {
#ifdef KERNEL
#ifdef _KERNEL
int merr;
if (buflen != 0)
@ -308,7 +308,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LD|BPF_B|BPF_IND:
k = X + pc->k;
if (k >= buflen) {
#ifdef KERNEL
#ifdef _KERNEL
register struct mbuf *m;
if (buflen != 0)
@ -327,7 +327,7 @@ bpf_filter(pc, p, wirelen, buflen)
case BPF_LDX|BPF_MSH|BPF_B:
k = pc->k;
if (k >= buflen) {
#ifdef KERNEL
#ifdef _KERNEL
register struct mbuf *m;
if (buflen != 0)
@ -484,7 +484,7 @@ bpf_filter(pc, p, wirelen, buflen)
}
}
#ifdef KERNEL
#ifdef _KERNEL
/*
* Return true if the 'fcode' is a valid filter program.
* The constraints are that each jump be forward and to a valid

View File

@ -1,4 +1,4 @@
/* $NetBSD: radix.c,v 1.7 1994/06/29 06:36:33 cgd Exp $ */
/* $NetBSD: radix.c,v 1.8 1995/03/28 20:01:13 jtc Exp $ */
/*
* Copyright (c) 1988, 1989, 1993
@ -43,7 +43,7 @@
#include <sys/systm.h>
#include <sys/malloc.h>
#define M_DONTWAIT M_NOWAIT
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/domain.h>
#endif
#endif
@ -735,7 +735,7 @@ void
rn_init()
{
char *cp, *cplim;
#ifdef KERNEL
#ifdef _KERNEL
struct domain *dom;
for (dom = domains; dom; dom = dom->dom_next)

View File

@ -1,4 +1,4 @@
/* $NetBSD: slcompress.c,v 1.10 1995/03/08 02:57:17 cgd Exp $ */
/* $NetBSD: slcompress.c,v 1.11 1995/03/28 20:01:15 jtc Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@ -61,7 +61,7 @@
#define BCMP(p1, p2, n) bcmp((char *)(p1), (char *)(p2), (int)(n))
#define BCOPY(p1, p2, n) bcopy((char *)(p1), (char *)(p2), (int)(n))
#ifndef KERNEL
#ifndef _KERNEL
#define ovbcopy bcopy
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cons.c,v 1.5 1994/06/29 06:39:35 cgd Exp $ */
/* $NetBSD: if_cons.c,v 1.6 1995/03/28 20:01:29 jtc Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -68,7 +68,7 @@ SOFTWARE.
*/
#ifdef TPCONS
#ifdef KERNEL
#ifdef _KERNEL
#ifdef ARGO_DEBUG
#define Static
unsigned LAST_CALL_PCB;
@ -514,7 +514,7 @@ done:
#endif /* KERNEL */
#endif /* _KERNEL */
/*
* NAME: make_partial_x25_packet()

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_subr.c,v 1.3 1994/10/20 04:20:58 cgd Exp $ */
/* $NetBSD: ffs_subr.c,v 1.4 1995/03/28 20:01:44 jtc Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -38,7 +38,7 @@
#include <sys/param.h>
#include <ufs/ffs/fs.h>
#ifdef KERNEL
#ifdef _KERNEL
#include <sys/systm.h>
#include <sys/vnode.h>
#include <ufs/ffs/ffs_extern.h>
@ -118,7 +118,7 @@ ffs_fragacct(fs, fragmap, fraglist, cnt)
}
}
#if defined(KERNEL) && defined(DIAGNOSTIC)
#if defined(_KERNEL) && defined(DIAGNOSTIC)
void
ffs_checkoverlap(bp, ip)
struct buf *bp;