Fix build problems caused by the last commit by only providing the

prototypes for trace_XXX() if _KERNEL is defined and including
"sys/types.h" in that case to get the definition of "boolean_t".
This commit is contained in:
tron 2006-03-07 13:18:20 +00:00
parent f059840dbd
commit b855636ac0
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: systm.h,v 1.185 2006/03/07 03:32:06 thorpej Exp $ */ /* $NetBSD: systm.h,v 1.186 2006/03/07 13:18:20 tron Exp $ */
/*- /*-
* Copyright (c) 1982, 1988, 1991, 1993 * Copyright (c) 1982, 1988, 1991, 1993
@ -75,6 +75,10 @@
#include <machine/endian.h> #include <machine/endian.h>
#ifdef _KERNEL
#include <sys/types.h>
#endif
struct clockframe; struct clockframe;
struct device; struct device;
struct lwp; struct lwp;
@ -353,10 +357,12 @@ void doforkhooks(struct proc *, struct proc *);
/* /*
* kernel syscall tracing/debugging hooks. * kernel syscall tracing/debugging hooks.
*/ */
#ifdef _KERNEL
boolean_t trace_is_enabled(struct proc *); boolean_t trace_is_enabled(struct proc *);
int trace_enter(struct lwp *, register_t, register_t, int trace_enter(struct lwp *, register_t, register_t,
const struct sysent *, void *); const struct sysent *, void *);
void trace_exit(struct lwp *, register_t, void *, register_t [], int); void trace_exit(struct lwp *, register_t, void *, register_t [], int);
#endif
int uiomove(void *, size_t, struct uio *); int uiomove(void *, size_t, struct uio *);
int uiomove_frombuf(void *, size_t, struct uio *); int uiomove_frombuf(void *, size_t, struct uio *);