regen for rump_sys_pipe()
This commit is contained in:
parent
baffc0cbae
commit
7bcd019a9d
@ -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_fstat(int, struct stat *) __RENAME(rump_sys___fstat50);
|
||||
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 *);
|
||||
|
@ -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 @@ rump_sys___fhstat50(const void * fhp, size_t fh_size, struct stat * sb)
|
||||
}
|
||||
__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 @@ struct sysent rump_sysent[] = {
|
||||
{ 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,
|
||||
|
Loading…
Reference in New Issue
Block a user