Allow to use syscallname(9) outside subr_trap.c.

MFC after:	1 month
This commit is contained in:
Konstantin Belousov 2010-05-26 15:39:43 +00:00
parent 47d9159525
commit b2318c2860
2 changed files with 4 additions and 2 deletions

View File

@ -260,8 +260,7 @@ ast(struct trapframe *framep)
}
#ifdef HAVE_SYSCALL_ARGS_DEF
static const char *syscallname(struct proc *p, u_int code) __unused;
static const char *
const char *
syscallname(struct proc *p, u_int code)
{
static const char unknown[] = "unknown";

View File

@ -202,6 +202,9 @@ int syscall_module_handler(struct module *mod, int what, void *arg);
int syscall_helper_register(struct syscall_helper_data *sd);
int syscall_helper_unregister(struct syscall_helper_data *sd);
struct proc;
const char *syscallname(struct proc *p, u_int code);
/* Special purpose system call functions. */
struct nosys_args;