From e061a6ca19ac3e58e6576aa28b43896a70d7290f Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 10 Sep 2001 07:00:17 +0000 Subject: [PATCH] Fix LINT breakage caused by previous commit. The linux_rt_sendsig and linux_sendsig functions guarded their debugging output with ldebug(sigreturn). This has been mistaken for a cut-n-paste bug, and was replaced by ldebug(rt_sendsig) and ldebug(sendsig) resp. Since the sendsig functions are not syscalls, this brokei any build that defines DEBUG. The fix maps both functions to the unused syscall 0 so that they can be enabled/disabled independently from sigreturn, but not independently from each other. --- sys/i386/linux/linux_sysvec.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index eaab863b41b6..b90ea56032be 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -76,6 +76,15 @@ MALLOC_DEFINE(M_LINUX, "linux", "Linux mode structures"); #define SHELLMAGIC 0x2321 #endif +/* + * Allow the sendsig functions to use the ldebug() facility + * even though they are not syscalls themselves. Map them + * to syscall 0. This is slightly less bogus than using + * ldebug(sigreturn). + */ +#define LINUX_SYS_linux_rt_sendsig 0 +#define LINUX_SYS_linux_sendsig 0 + extern char linux_sigcode[]; extern int linux_szsigcode;