Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode Implement thunk_sigaltstack() so an altern...



details:   https://anonhg.NetBSD.org/src/rev/6e12446770a8
branches:  trunk
changeset: 769165:6e12446770a8
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Thu Sep 01 18:19:00 2011 +0000

description:
Implement thunk_sigaltstack() so an alternative signal stack can be used

diffstat:

 sys/arch/usermode/include/thunk.h  |   3 ++-
 sys/arch/usermode/usermode/thunk.c |  10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 5c4cee0f1e94 -r 6e12446770a8 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Thu Sep 01 16:55:08 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Thu Sep 01 18:19:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.20 2011/08/28 21:19:49 jmcneill Exp $ */
+/* $NetBSD: thunk.h,v 1.21 2011/09/01 18:19:00 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -90,6 +90,7 @@
 int    thunk_unlink(const char *);
 
 int    thunk_sigaction(int, const struct sigaction *, struct sigaction *);
+int    thunk_sigaltstack(const stack_t *, stack_t *);
 void   thunk_signal(int, void (*)(int));
 int    thunk_atexit(void (*function)(void));
 
diff -r 5c4cee0f1e94 -r 6e12446770a8 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Thu Sep 01 16:55:08 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Thu Sep 01 18:19:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.23 2011/09/01 15:13:33 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.24 2011/09/01 18:19:00 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: thunk.c,v 1.23 2011/09/01 15:13:33 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.24 2011/09/01 18:19:00 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/ansi.h>
@@ -317,6 +317,12 @@
        return sigaction(sig, act, oact);
 }
 
+int
+thunk_sigaltstack(const stack_t *ss, stack_t *oss)
+{
+       return sigaltstack(ss, oss);
+}
+
 void
 thunk_signal(int sig, void (*func)(int))
 {



Home | Main Index | Thread Index | Old Index