summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-02-24 16:16:45 +0000
committerkan <kan@FreeBSD.org>2003-02-24 16:16:45 +0000
commit8d132c042025e4b04d276ad5d57dfbc80ed190a2 (patch)
treea03cbef2f8009a30a7ba83c630c0889d57b3dc12
parent0c2cfddf3808fdb82302a5191a73d4f0bf9b6bf5 (diff)
downloadFreeBSD-src-8d132c042025e4b04d276ad5d57dfbc80ed190a2.zip
FreeBSD-src-8d132c042025e4b04d276ad5d57dfbc80ed190a2.tar.gz
Correctly map SIGSYS signal to/from Linux.
Submitted by: "Georg-W. Koltermann" <g.w.k@web.de>
-rw-r--r--sys/i386/linux/linux.h2
-rw-r--r--sys/i386/linux/linux_sysvec.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index cff33fd..3faded5 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -230,7 +230,7 @@ struct l_new_utsname {
#define LINUX_SIGIO 29
#define LINUX_SIGPOLL LINUX_SIGIO
#define LINUX_SIGPWR 30
-#define LINUX_SIGUNUSED 31
+#define LINUX_SIGSYS 31
#define LINUX_SIGTBLSZ 31
#define LINUX_NSIG_WORDS 2
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 63ff5d7..29b0713 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -129,7 +129,7 @@ static int bsd_to_linux_errno[ELAST + 1] = {
int bsd_to_linux_signal[LINUX_SIGTBLSZ] = {
LINUX_SIGHUP, LINUX_SIGINT, LINUX_SIGQUIT, LINUX_SIGILL,
LINUX_SIGTRAP, LINUX_SIGABRT, 0, LINUX_SIGFPE,
- LINUX_SIGKILL, LINUX_SIGBUS, LINUX_SIGSEGV, 0,
+ LINUX_SIGKILL, LINUX_SIGBUS, LINUX_SIGSEGV, LINUX_SIGSYS,
LINUX_SIGPIPE, LINUX_SIGALRM, LINUX_SIGTERM, LINUX_SIGURG,
LINUX_SIGSTOP, LINUX_SIGTSTP, LINUX_SIGCONT, LINUX_SIGCHLD,
LINUX_SIGTTIN, LINUX_SIGTTOU, LINUX_SIGIO, LINUX_SIGXCPU,
@@ -145,7 +145,7 @@ int linux_to_bsd_signal[LINUX_SIGTBLSZ] = {
SIGCHLD, SIGCONT, SIGSTOP, SIGTSTP,
SIGTTIN, SIGTTOU, SIGURG, SIGXCPU,
SIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH,
- SIGIO, SIGURG, 0
+ SIGIO, SIGURG, SIGSYS
};
#define LINUX_T_UNKNOWN 255
OpenPOWER on IntegriCloud