diff options
author | marcel <marcel@FreeBSD.org> | 2001-09-10 07:00:17 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2001-09-10 07:00:17 +0000 |
commit | 4ee6142f0a8ecb5ebf2ef76f93cbaf094eb5753d (patch) | |
tree | 7e65041976b3892e508f2b1be014d62501ff67b1 /sys/i386/linux/linux_sysvec.c | |
parent | 51f2eacde0acc83af2b12607a026eb395e6af02b (diff) | |
download | FreeBSD-src-4ee6142f0a8ecb5ebf2ef76f93cbaf094eb5753d.zip FreeBSD-src-4ee6142f0a8ecb5ebf2ef76f93cbaf094eb5753d.tar.gz |
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.
Diffstat (limited to 'sys/i386/linux/linux_sysvec.c')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index eaab863..b90ea56 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; |