diff options
author | kib <kib@FreeBSD.org> | 2010-05-26 15:39:43 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-05-26 15:39:43 +0000 |
commit | 4f460f2f9a60e4e057d4da1218e2469e303e94b9 (patch) | |
tree | d1460feb5cd1f8f252f4a9351a0875352aec1344 | |
parent | 67c0f38a6d4837444dec17f1aeaec26448a414b1 (diff) | |
download | FreeBSD-src-4f460f2f9a60e4e057d4da1218e2469e303e94b9.zip FreeBSD-src-4f460f2f9a60e4e057d4da1218e2469e303e94b9.tar.gz |
Allow to use syscallname(9) outside subr_trap.c.
MFC after: 1 month
-rw-r--r-- | sys/kern/subr_trap.c | 3 | ||||
-rw-r--r-- | sys/sys/sysent.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 4cc56cc..81e27e5 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -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"; diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h index 6a8f538..b34d2cd 100644 --- a/sys/sys/sysent.h +++ b/sys/sys/sysent.h @@ -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; |