Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 2010 15:39:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208566 - in head/sys: kern sys
Message-ID:  <201005261539.o4QFdhRk086661@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005261539.o4QFdhRk086661>