Module Name: src Committed By: reinoud Date: Thu Sep 1 18:19:00 UTC 2011
Modified Files: src/sys/arch/usermode/include: thunk.h src/sys/arch/usermode/usermode: thunk.c Log Message: Implement thunk_sigaltstack() so an alternative signal stack can be used To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/usermode/include/thunk.h cvs rdiff -u -r1.23 -r1.24 src/sys/arch/usermode/usermode/thunk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/include/thunk.h diff -u src/sys/arch/usermode/include/thunk.h:1.20 src/sys/arch/usermode/include/thunk.h:1.21 --- src/sys/arch/usermode/include/thunk.h:1.20 Sun Aug 28 21:19:49 2011 +++ src/sys/arch/usermode/include/thunk.h Thu Sep 1 18:19:00 2011 @@ -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 <jmcne...@invisible.ca> @@ -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)); Index: src/sys/arch/usermode/usermode/thunk.c diff -u src/sys/arch/usermode/usermode/thunk.c:1.23 src/sys/arch/usermode/usermode/thunk.c:1.24 --- src/sys/arch/usermode/usermode/thunk.c:1.23 Thu Sep 1 15:13:33 2011 +++ src/sys/arch/usermode/usermode/thunk.c Thu Sep 1 18:19:00 2011 @@ -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 <jmcne...@invisible.ca> @@ -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)) {