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_seterrno()
details: https://anonhg.NetBSD.org/src/rev/694ccce4794f
branches: trunk
changeset: 769249:694ccce4794f
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Sep 04 20:46:58 2011 +0000
description:
Implement thunk_seterrno()
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 1ac143dc3dae -r 694ccce4794f sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Sun Sep 04 20:35:07 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Sun Sep 04 20:46:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.26 2011/09/04 20:15:57 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.27 2011/09/04 20:46:58 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -79,6 +79,7 @@
void thunk_abort(void);
int thunk_geterrno(void);
+void thunk_seterrno(int err);
int thunk_getcontext(ucontext_t *);
int thunk_setcontext(const ucontext_t *);
diff -r 1ac143dc3dae -r 694ccce4794f sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Sun Sep 04 20:35:07 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Sun Sep 04 20:46:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.29 2011/09/04 20:15:57 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.30 2011/09/04 20:46:58 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.29 2011/09/04 20:15:57 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.30 2011/09/04 20:46:58 reinoud Exp $");
#endif
#include <sys/types.h>
@@ -234,6 +234,12 @@
return errno;
}
+void
+thunk_seterrno(int err)
+{
+ errno = err;
+}
+
int
thunk_getcontext(ucontext_t *ucp)
{
Home |
Main Index |
Thread Index |
Old Index