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 thunk_close()
details: https://anonhg.NetBSD.org/src/rev/d602d2ada7a1
branches: trunk
changeset: 772665:d602d2ada7a1
user: reinoud <reinoud%NetBSD.org@localhost>
date: Wed Jan 11 12:37:50 2012 +0000
description:
Add thunk_close()
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 c0b63e929b09 -r d602d2ada7a1 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Wed Jan 11 10:15:36 2012 +0000
+++ b/sys/arch/usermode/include/thunk.h Wed Jan 11 12:37:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.58 2012/01/10 12:04:56 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.59 2012/01/11 12:37:50 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -115,6 +115,7 @@
int thunk_execv(const char *, char * const []);
int thunk_open(const char *, int, mode_t);
+int thunk_close(int);
int thunk_fstat_getsize(int, off_t *, ssize_t *);
ssize_t thunk_pread(int, void *, size_t, off_t);
ssize_t thunk_pwrite(int, const void *, size_t, off_t);
diff -r c0b63e929b09 -r d602d2ada7a1 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Wed Jan 11 10:15:36 2012 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Wed Jan 11 12:37:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.76 2012/01/10 12:04:56 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.77 2012/01/11 12:37:50 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.76 2012/01/10 12:04:56 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.77 2012/01/11 12:37:50 reinoud Exp $");
#endif
#include <sys/types.h>
@@ -482,6 +482,12 @@
}
int
+thunk_close(int fd)
+{
+ return close(fd);
+}
+
+int
thunk_fstat_getsize(int fd, off_t *size, ssize_t *blksize)
{
struct stat st;
Home |
Main Index |
Thread Index |
Old Index