Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen for rump_sys_pipe()
details: https://anonhg.NetBSD.org/src/rev/4990ae22f45b
branches: trunk
changeset: 749327:4990ae22f45b
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Nov 26 17:24:36 2009 +0000
description:
regen for rump_sys_pipe()
diffstat:
sys/rump/include/rump/rump_syscalls.h | 5 +++--
sys/rump/librump/rumpkern/rump_syscalls.c | 25 +++++++++++++++++++++----
2 files changed, 24 insertions(+), 6 deletions(-)
diffs (75 lines):
diff -r 7285038b1f15 -r 4990ae22f45b sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Thu Nov 26 17:23:48 2009 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Thu Nov 26 17:24:36 2009 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.18 2009/11/26 16:38:01 pooka Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.19 2009/11/26 17:24:36 pooka Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.230 2009/11/26 09:00:45 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp
*/
#ifdef _RUMPKERNEL
@@ -126,3 +126,4 @@
int rump_sys_lstat(const char *, struct stat *) __RENAME(rump_sys___lstat50);
int rump_sys_mknod(const char *, mode_t, dev_t) __RENAME(rump_sys___mknod50);
int rump_sys_fhstat(const void *, size_t, struct stat *) __RENAME(rump_sys___fhstat50);
+int rump_sys_pipe(int *);
diff -r 7285038b1f15 -r 4990ae22f45b sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Thu Nov 26 17:23:48 2009 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Thu Nov 26 17:24:36 2009 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_syscalls.c,v 1.39 2009/11/26 16:38:01 pooka Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.40 2009/11/26 17:24:36 pooka Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.230 2009/11/26 09:00:45 pooka Exp
+ * created from NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.39 2009/11/26 16:38:01 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.40 2009/11/26 17:24:36 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -2447,6 +2447,23 @@
}
__weak_alias(sys___fhstat50,rump_enosys);
+int rump_sys_pipe(int *);
+int
+rump_sys_pipe(int *fd)
+{
+ register_t rval[2] = {0, 0};
+ int error = 0;
+
+ error = rump_sysproxy(SYS_pipe, rump_sysproxy_arg, NULL, 0, rval);
+ if (error) {
+ rumpuser_seterrno(error);
+ } else {
+ fd[0] = rval[0];
+ fd[1] = rval[1];
+ }
+ return error ? -1 : 0;
+}
+
#define s(type) sizeof(type)
#define n(type) (sizeof(type)/sizeof (register_t))
#define ns(type) n(type), s(type)
@@ -2537,7 +2554,7 @@
{ ns(struct sys_dup_args), 0,
(sy_call_t *)sys_dup }, /* 41 = dup */
{ 0, 0, 0,
- (sy_call_t *)rump_enosys }, /* 42 = unrumped */
+ (sy_call_t *)sys_pipe }, /* 42 = pipe */
{ 0, 0, 0,
(sy_call_t *)rump_enosys }, /* 43 = unrumped */
{ 0, 0, 0,
Home |
Main Index |
Thread Index |
Old Index