diff options
author | sobomax <sobomax@FreeBSD.org> | 2005-03-07 00:18:06 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2005-03-07 00:18:06 +0000 |
commit | f706f4bce8c8194eb57aa53603187eb626cd5131 (patch) | |
tree | 8060fc6bfd028932f4232dcc6812a19edbadbfc3 /sys/compat/linux/linux_misc.c | |
parent | 78bc2de1cdfc0f5d0c7ed2b4d049425b2c0c4d30 (diff) | |
download | FreeBSD-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/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 40762cb..7bbeaff 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -74,6 +74,8 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" +#include <compat/linux/linux_sysproto.h> + #ifdef COMPAT_LINUX32 #include <machine/../linux32/linux.h> #include <machine/../linux32/linux32_proto.h> @@ -1392,3 +1394,10 @@ linux_getsid(struct thread *td, struct linux_getsid_args *args) bsd.pid = args->pid; return getsid(td, &bsd); } + +int +linux_nosys(struct thread *td, struct nosys_args *ignore) +{ + + return (ENOSYS); +} |