Allow to use syscallname(9) outside subr_trap.c.
MFC after: 1 month
This commit is contained in:
parent
47d9159525
commit
b2318c2860
@ -260,8 +260,7 @@ ast(struct trapframe *framep)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SYSCALL_ARGS_DEF
|
#ifdef HAVE_SYSCALL_ARGS_DEF
|
||||||
static const char *syscallname(struct proc *p, u_int code) __unused;
|
const char *
|
||||||
static const char *
|
|
||||||
syscallname(struct proc *p, u_int code)
|
syscallname(struct proc *p, u_int code)
|
||||||
{
|
{
|
||||||
static const char unknown[] = "unknown";
|
static const char unknown[] = "unknown";
|
||||||
|
@ -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_register(struct syscall_helper_data *sd);
|
||||||
int syscall_helper_unregister(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. */
|
/* Special purpose system call functions. */
|
||||||
struct nosys_args;
|
struct nosys_args;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user