Module Name:    src
Committed By:   reinoud
Date:           Sat Aug 20 20:14:04 UTC 2011

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

Log Message:
Create mkstemp() and sbrk() prototypes to NetBSD/usermode's thunk


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/thunk.h
cvs rdiff -u -r1.5 -r1.6 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.5 src/sys/arch/usermode/include/thunk.h:1.6
--- src/sys/arch/usermode/include/thunk.h:1.5	Sat Aug 13 12:06:23 2011
+++ src/sys/arch/usermode/include/thunk.h	Sat Aug 20 20:14:04 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.5 2011/08/13 12:06:23 jmcneill Exp $ */
+/* $NetBSD: thunk.h,v 1.6 2011/08/20 20:14:04 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca>
@@ -61,6 +61,7 @@
 ssize_t	thunk_pread(int, void *, size_t, off_t);
 ssize_t	thunk_pwrite(int, const void *, size_t, off_t);
 int	thunk_fsync(int);
+int	thunk_mkstemp(const char *);
 
 int	thunk_sigaction(int, const struct sigaction *, struct sigaction *);
 
@@ -69,4 +70,6 @@
 int	thunk_aio_error(const struct aiocb *);
 int	thunk_aio_return(struct aiocb *);
 
+void *	thunk_sbrk(intptr_t len);
+
 #endif /* !_ARCH_USERMODE_INCLUDE_THUNK_H */

Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.5 src/sys/arch/usermode/usermode/thunk.c:1.6
--- src/sys/arch/usermode/usermode/thunk.c:1.5	Sat Aug 13 12:06:23 2011
+++ src/sys/arch/usermode/usermode/thunk.c	Sat Aug 20 20:14:04 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.5 2011/08/13 12:06:23 jmcneill Exp $ */
+/* $NetBSD: thunk.c,v 1.6 2011/08/20 20:14:04 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.5 2011/08/13 12:06:23 jmcneill Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.6 2011/08/20 20:14:04 reinoud Exp $");
 
 #include <machine/thunk.h>
 
@@ -161,6 +161,12 @@
 }
 
 int
+thunk_mkstemp(const char *template)
+{
+	return mkstemp(template);
+}
+
+int
 thunk_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
 {
 	return sigaction(sig, act, oact);
@@ -189,3 +195,10 @@
 {
 	return aio_return(aiocbp);
 }
+
+void *
+thunk_sbrk(intptr_t len)
+{
+	return sbrk(len);
+}
+

Reply via email to