Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/compat/linux/common Pull up revision 1.87 (via patc...



details:   https://anonhg.NetBSD.org/src/rev/bc7075effe2b
branches:  netbsd-1-5
changeset: 491461:bc7075effe2b
user:      he <he%NetBSD.org@localhost>
date:      Tue May 01 08:53:53 2001 +0000

description:
Pull up revision 1.87 (via patch, requested by jdolecek):
  Make it possible to use a different function for unimplemented
  syscalls than sys_nosys(), so that the Linux emulation can avoid
  posting SIGSYS and instead just return ENOSYS.

diffstat:

 sys/compat/linux/common/linux_misc.c |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r c592bfbde599 -r bc7075effe2b sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c      Tue May 01 08:53:00 2001 +0000
+++ b/sys/compat/linux/common/linux_misc.c      Tue May 01 08:53:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_misc.c,v 1.69.4.2 2001/03/30 21:41:32 he Exp $   */
+/*     $NetBSD: linux_misc.c,v 1.69.4.3 2001/05/01 08:53:53 he Exp $   */
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -1146,3 +1146,17 @@
 
        return(sys_reboot(p, &sra, retval));
 }
+
+/*
+ * This gets called for unsupported syscalls. The difference to sys_nosys()
+ * is that process does not get SIGSYS, the call just returns with ENOSYS.
+ * This is the way Linux does it and glibc depends on this behaviour.
+ */
+int
+linux_sys_nosys(p, v, retval)
+       struct proc *p;
+       void *v;
+       register_t *retval;
+{
+       return (ENOSYS);
+}



Home | Main Index | Thread Index | Old Index