regen for new syscalls
This commit is contained in:
parent
89fa47c428
commit
786ad5478f
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: rump_syscalls.h,v 1.7 2009/01/23 19:30:16 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.h,v 1.8 2009/01/26 12:21:24 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call protos in rump namespace.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.221 2009/01/13 22:27:44 pooka Exp
|
||||
* created from NetBSD: syscalls.master,v 1.222 2009/01/26 12:20:05 pooka Exp
|
||||
*/
|
||||
|
||||
#ifdef _RUMPKERNEL
|
||||
@ -22,7 +22,12 @@ int rump_sys_fchdir(int);
|
||||
int rump_sys_chmod(const char *, mode_t);
|
||||
int rump_sys_chown(const char *, uid_t, gid_t);
|
||||
int rump_sys_unmount(const char *, int);
|
||||
ssize_t rump_sys_recvmsg(int, struct msghdr *, int);
|
||||
ssize_t rump_sys_sendmsg(int, const struct msghdr *, int);
|
||||
ssize_t rump_sys_recvfrom(int, void *, size_t, int, struct sockaddr *, unsigned int *);
|
||||
int rump_sys_accept(int, struct sockaddr *, unsigned int *);
|
||||
int rump_sys_getpeername(int, struct sockaddr *, unsigned int *);
|
||||
int rump_sys_getsockname(int, struct sockaddr *, unsigned int *);
|
||||
int rump_sys_chflags(const char *, u_long);
|
||||
void rump_sys_sync(void);
|
||||
int rump_sys_ioctl(int, u_long, void *);
|
||||
@ -36,6 +41,9 @@ int rump_sys_listen(int, int);
|
||||
int rump_sys_getsockopt(int, int, int, void *, unsigned int *);
|
||||
int rump_sys_rename(const char *, const char *);
|
||||
int rump_sys_mkfifo(const char *, mode_t);
|
||||
ssize_t rump_sys_sendto(int, const void *, size_t, int, const struct sockaddr *, unsigned int);
|
||||
int rump_sys_shutdown(int, int);
|
||||
int rump_sys_socketpair(int, int, int, int *);
|
||||
int rump_sys_mkdir(const char *, mode_t);
|
||||
int rump_sys_rmdir(const char *);
|
||||
int rump_sys_nfssvc(int, void *);
|
||||
|
@ -1,14 +1,14 @@
|
||||
/* $NetBSD: rump_syscalls.c,v 1.27 2009/01/23 19:30:16 pooka Exp $ */
|
||||
/* $NetBSD: rump_syscalls.c,v 1.28 2009/01/26 12:21:24 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* System call marshalling for rump.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.221 2009/01/13 22:27:44 pooka Exp
|
||||
* created from NetBSD: syscalls.master,v 1.222 2009/01/26 12:20:05 pooka Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.27 2009/01/23 19:30:16 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.28 2009/01/26 12:21:24 pooka Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -251,6 +251,72 @@ rump_sys_unmount(const char * path, int flags)
|
||||
}
|
||||
__weak_alias(sys_unmount,rump_enosys);
|
||||
|
||||
ssize_t rump_sys_recvmsg(int, struct msghdr *, int);
|
||||
ssize_t
|
||||
rump_sys_recvmsg(int s, struct msghdr * msg, int flags)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_recvmsg_args arg;
|
||||
|
||||
SPARG(&arg, s) = s;
|
||||
SPARG(&arg, msg) = msg;
|
||||
SPARG(&arg, flags) = flags;
|
||||
|
||||
error = sys_recvmsg(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_recvmsg,rump_enosys);
|
||||
|
||||
ssize_t rump_sys_sendmsg(int, const struct msghdr *, int);
|
||||
ssize_t
|
||||
rump_sys_sendmsg(int s, const struct msghdr * msg, int flags)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_sendmsg_args arg;
|
||||
|
||||
SPARG(&arg, s) = s;
|
||||
SPARG(&arg, msg) = msg;
|
||||
SPARG(&arg, flags) = flags;
|
||||
|
||||
error = sys_sendmsg(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_sendmsg,rump_enosys);
|
||||
|
||||
ssize_t rump_sys_recvfrom(int, void *, size_t, int, struct sockaddr *, unsigned int *);
|
||||
ssize_t
|
||||
rump_sys_recvfrom(int s, void * buf, size_t len, int flags, struct sockaddr * from, unsigned int * fromlenaddr)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_recvfrom_args arg;
|
||||
|
||||
SPARG(&arg, s) = s;
|
||||
SPARG(&arg, buf) = buf;
|
||||
SPARG(&arg, len) = len;
|
||||
SPARG(&arg, flags) = flags;
|
||||
SPARG(&arg, from) = from;
|
||||
SPARG(&arg, fromlenaddr) = fromlenaddr;
|
||||
|
||||
error = sys_recvfrom(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_recvfrom,rump_enosys);
|
||||
|
||||
int rump_sys_accept(int, struct sockaddr *, unsigned int *);
|
||||
int
|
||||
rump_sys_accept(int s, struct sockaddr * name, unsigned int * anamelen)
|
||||
@ -272,6 +338,48 @@ rump_sys_accept(int s, struct sockaddr * name, unsigned int * anamelen)
|
||||
}
|
||||
__weak_alias(sys_accept,rump_enosys);
|
||||
|
||||
int rump_sys_getpeername(int, struct sockaddr *, unsigned int *);
|
||||
int
|
||||
rump_sys_getpeername(int fdes, struct sockaddr * asa, unsigned int * alen)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_getpeername_args arg;
|
||||
|
||||
SPARG(&arg, fdes) = fdes;
|
||||
SPARG(&arg, asa) = asa;
|
||||
SPARG(&arg, alen) = alen;
|
||||
|
||||
error = sys_getpeername(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_getpeername,rump_enosys);
|
||||
|
||||
int rump_sys_getsockname(int, struct sockaddr *, unsigned int *);
|
||||
int
|
||||
rump_sys_getsockname(int fdes, struct sockaddr * asa, unsigned int * alen)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_getsockname_args arg;
|
||||
|
||||
SPARG(&arg, fdes) = fdes;
|
||||
SPARG(&arg, asa) = asa;
|
||||
SPARG(&arg, alen) = alen;
|
||||
|
||||
error = sys_getsockname(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_getsockname,rump_enosys);
|
||||
|
||||
int rump_sys_chflags(const char *, u_long);
|
||||
int
|
||||
rump_sys_chflags(const char * path, u_long flags)
|
||||
@ -535,6 +643,72 @@ rump_sys_mkfifo(const char * path, mode_t mode)
|
||||
}
|
||||
__weak_alias(sys_mkfifo,rump_enosys);
|
||||
|
||||
ssize_t rump_sys_sendto(int, const void *, size_t, int, const struct sockaddr *, unsigned int);
|
||||
ssize_t
|
||||
rump_sys_sendto(int s, const void * buf, size_t len, int flags, const struct sockaddr * to, unsigned int tolen)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_sendto_args arg;
|
||||
|
||||
SPARG(&arg, s) = s;
|
||||
SPARG(&arg, buf) = buf;
|
||||
SPARG(&arg, len) = len;
|
||||
SPARG(&arg, flags) = flags;
|
||||
SPARG(&arg, to) = to;
|
||||
SPARG(&arg, tolen) = tolen;
|
||||
|
||||
error = sys_sendto(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_sendto,rump_enosys);
|
||||
|
||||
int rump_sys_shutdown(int, int);
|
||||
int
|
||||
rump_sys_shutdown(int s, int how)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_shutdown_args arg;
|
||||
|
||||
SPARG(&arg, s) = s;
|
||||
SPARG(&arg, how) = how;
|
||||
|
||||
error = sys_shutdown(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_shutdown,rump_enosys);
|
||||
|
||||
int rump_sys_socketpair(int, int, int, int *);
|
||||
int
|
||||
rump_sys_socketpair(int domain, int type, int protocol, int * rsv)
|
||||
{
|
||||
register_t retval = 0;
|
||||
int error = 0;
|
||||
struct sys_socketpair_args arg;
|
||||
|
||||
SPARG(&arg, domain) = domain;
|
||||
SPARG(&arg, type) = type;
|
||||
SPARG(&arg, protocol) = protocol;
|
||||
SPARG(&arg, rsv) = rsv;
|
||||
|
||||
error = sys_socketpair(curlwp, &arg, &retval);
|
||||
if (error) {
|
||||
retval = -1;
|
||||
rumpuser_seterrno(error);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
__weak_alias(sys_socketpair,rump_enosys);
|
||||
|
||||
int rump_sys_mkdir(const char *, mode_t);
|
||||
int
|
||||
rump_sys_mkdir(const char * path, mode_t mode)
|
||||
|
Loading…
Reference in New Issue
Block a user