Module Name:    src
Committed By:   reinoud
Date:           Sun Sep  4 20:46:58 UTC 2011

Modified Files:
        src/sys/arch/usermode/include: thunk.h
        src/sys/arch/usermode/usermode: thunk.c

Log Message:
Implement thunk_seterrno()


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/usermode/include/thunk.h
cvs rdiff -u -r1.29 -r1.30 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.26 src/sys/arch/usermode/include/thunk.h:1.27
--- src/sys/arch/usermode/include/thunk.h:1.26	Sun Sep  4 20:15:57 2011
+++ src/sys/arch/usermode/include/thunk.h	Sun Sep  4 20:46:58 2011
@@ -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 <jmcne...@invisible.ca>
@@ -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 *);

Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.29 src/sys/arch/usermode/usermode/thunk.c:1.30
--- src/sys/arch/usermode/usermode/thunk.c:1.29	Sun Sep  4 20:15:57 2011
+++ src/sys/arch/usermode/usermode/thunk.c	Sun Sep  4 20:46:58 2011
@@ -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 <jmcne...@invisible.ca>
@@ -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)
 {

Reply via email to