Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/arch/i386 add support for syscall 186 [siga...



details:   https://anonhg.NetBSD.org/src/rev/85d231e84e38
branches:  trunk
changeset: 496444:85d231e84e38
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 23 16:59:51 2000 +0000

description:
add support for syscall 186 [sigaltstack]

diffstat:

 sys/compat/linux/arch/i386/linux_signal.h  |  14 +++++++++++++-
 sys/compat/linux/arch/i386/syscalls.master |   6 ++++--
 2 files changed, 17 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 2069ae3e27db -r 85d231e84e38 sys/compat/linux/arch/i386/linux_signal.h
--- a/sys/compat/linux/arch/i386/linux_signal.h Wed Aug 23 15:17:47 2000 +0000
+++ b/sys/compat/linux/arch/i386/linux_signal.h Wed Aug 23 16:59:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_signal.h,v 1.8 1999/10/04 17:46:37 fvdl Exp $    */
+/*     $NetBSD: linux_signal.h,v 1.9 2000/08/23 16:59:52 christos Exp $        */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -118,4 +118,16 @@
 #define k_sa_restorer  sa.sa_restorer
 };
 
+#define        LINUX_SS_ONSTACK        1
+#define        LINUX_SS_DISABLE        2
+
+#define        LINUX_MINSIGSTKSZ       2048
+#define        LINUX_SIGSTKSZ          8192
+
+struct linux_sigaltstack {
+       void *ss_sp;
+       int ss_flags;
+       size_t ss_size;
+};
+
 #endif /* !_I386_LINUX_SIGNAL_H */
diff -r 2069ae3e27db -r 85d231e84e38 sys/compat/linux/arch/i386/syscalls.master
--- a/sys/compat/linux/arch/i386/syscalls.master        Wed Aug 23 15:17:47 2000 +0000
+++ b/sys/compat/linux/arch/i386/syscalls.master        Wed Aug 23 16:59:51 2000 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.41 2000/03/18 22:20:57 erh Exp $
+       $NetBSD: syscalls.master,v 1.42 2000/08/23 16:59:51 christos Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -307,7 +307,9 @@
 183    NOARGS          { int sys___getcwd(char *bufp, size_t length); }
 184    UNIMPL          capget
 185    UNIMPL          capset
-186    UNIMPL          sigaltstack
+186    STD             { int linux_sys_sigaltstack( \
+                           const struct linux_sigaltstack *ss, \
+                           struct linux_sigaltstack *oss); }
 187    UNIMPL          sendfile
 188    UNIMPL          getpmsg
 189    UNIMPL          putpmsg



Home | Main Index | Thread Index | Old Index