Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode Add a thunk_atexit() so ucontext() ends ca...
details: https://anonhg.NetBSD.org/src/rev/9a9417253bb0
branches: trunk
changeset: 768837:9a9417253bb0
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sat Aug 27 21:14:15 2011 +0000
description:
Add a thunk_atexit() so ucontext() ends can be dealt with as they should
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 4411cb698740 -r 9a9417253bb0 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Sat Aug 27 20:49:36 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Sat Aug 27 21:14:15 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.17 2011/08/25 11:06:29 jmcneill Exp $ */
+/* $NetBSD: thunk.h,v 1.18 2011/08/27 21:14:15 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -77,6 +77,7 @@
int thunk_sigaction(int, const struct sigaction *, struct sigaction *);
void thunk_signal(int, void (*)(int));
+int thunk_atexit(void (*function)(void));
int thunk_aio_read(struct aiocb *);
int thunk_aio_write(struct aiocb *);
diff -r 4411cb698740 -r 9a9417253bb0 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Sat Aug 27 20:49:36 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Sat Aug 27 21:14:15 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.19 2011/08/25 11:06:29 jmcneill Exp $ */
+/* $NetBSD: thunk.c,v 1.20 2011/08/27 21:14:15 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.19 2011/08/25 11:06:29 jmcneill Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.20 2011/08/27 21:14:15 reinoud Exp $");
#include <sys/types.h>
#include <sys/ansi.h>
@@ -265,6 +265,12 @@
}
int
+thunk_atexit(void (*function)(void))
+{
+ return atexit(function);
+}
+
+int
thunk_aio_read(struct aiocb *aiocbp)
{
return aio_read(aiocbp);
Home |
Main Index |
Thread Index |
Old Index