Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode Create mkstemp() and sbrk() prototypes to ...
details: https://anonhg.NetBSD.org/src/rev/a75cf4664283
branches: trunk
changeset: 768566:a75cf4664283
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sat Aug 20 20:14:04 2011 +0000
description:
Create mkstemp() and sbrk() prototypes to NetBSD/usermode's thunk
diffstat:
sys/arch/usermode/include/thunk.h | 5 ++++-
sys/arch/usermode/usermode/thunk.c | 17 +++++++++++++++--
2 files changed, 19 insertions(+), 3 deletions(-)
diffs (66 lines):
diff -r fcf54819e89f -r a75cf4664283 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Sat Aug 20 20:01:08 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Sat Aug 20 20:14:04 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 */
diff -r fcf54819e89f -r a75cf4664283 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Sat Aug 20 20:01:08 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Sat Aug 20 20:14:04 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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);
+}
+
Home |
Main Index |
Thread Index |
Old Index