summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2005-03-07 00:18:06 +0000
committersobomax <sobomax@FreeBSD.org>2005-03-07 00:18:06 +0000
commitf706f4bce8c8194eb57aa53603187eb626cd5131 (patch)
tree8060fc6bfd028932f4232dcc6812a19edbadbfc3 /sys/i386/linux
parent78bc2de1cdfc0f5d0c7ed2b4d049425b2c0c4d30 (diff)
downloadFreeBSD-src-f706f4bce8c8194eb57aa53603187eb626cd5131.zip
FreeBSD-src-f706f4bce8c8194eb57aa53603187eb626cd5131.tar.gz
Handle unimplemented syscall by instantly returning ENOSYS instead of sending
signal first and only then returning ENOSYS to match what real linux does. PR: kern/74302 Submitted by: Travis Poppe <tlp@LiquidX.org>
Diffstat (limited to 'sys/i386/linux')
-rw-r--r--sys/i386/linux/syscalls.master4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master
index ae9e52a..4d05eaa 100644
--- a/sys/i386/linux/syscalls.master
+++ b/sys/i386/linux/syscalls.master
@@ -25,9 +25,13 @@
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
+#include <compat/linux/linux_sysproto.h>
#include <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
+; Isn't pretty, but there seems to be no other way to trap nosys
+#define nosys linux_nosys
+
; #ifdef's, etc. may be included, and are copied to the output files.
0 UNIMPL setup
OpenPOWER on IntegriCloud