svn commit: r208566 - in head/sys: kern sys
Konstantin Belousov
kib at FreeBSD.org
Wed May 26 15:39:44 UTC 2010
Author: kib
Date: Wed May 26 15:39:43 2010
New Revision: 208566
URL: http://svn.freebsd.org/changeset/base/208566
Log:
Allow to use syscallname(9) outside subr_trap.c.
MFC after: 1 month
Modified:
head/sys/kern/subr_trap.c
head/sys/sys/sysent.h
Modified: head/sys/kern/subr_trap.c
==============================================================================
--- head/sys/kern/subr_trap.c Wed May 26 15:36:29 2010 (r208565)
+++ head/sys/kern/subr_trap.c Wed May 26 15:39:43 2010 (r208566)
@@ -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";
Modified: head/sys/sys/sysent.h
==============================================================================
--- head/sys/sys/sysent.h Wed May 26 15:36:29 2010 (r208565)
+++ head/sys/sys/sysent.h Wed May 26 15:39:43 2010 (r208566)
@@ -202,6 +202,9 @@ int syscall_module_handler(struct module
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;
More information about the svn-src-all
mailing list