regen: ksem syscalls

This commit is contained in:
pooka 2010-06-10 19:10:09 +00:00
parent 13ce287a55
commit df76692de4
2 changed files with 218 additions and 23 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: rump_syscalls.h,v 1.25 2010/06/04 16:33:32 njoly Exp $ */
/* $NetBSD: rump_syscalls.h,v 1.26 2010/06/10 19:10:10 pooka Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.234 2010/06/04 16:32:00 njoly Exp
* created from NetBSD: syscalls.master,v 1.235 2010/06/10 19:09:03 pooka Exp
*/
#ifndef _RUMP_RUMP_SYSCALLS_H_
@ -81,6 +81,15 @@ int rump_sys_reboot(int, char *);
int rump_sys_poll(struct pollfd *, u_int, int);
int rump_sys_fdatasync(int);
int rump_sys_modctl(int, void *);
int rump_sys__ksem_init(unsigned int, intptr_t *);
int rump_sys__ksem_open(const char *, int, mode_t, unsigned int, intptr_t *);
int rump_sys__ksem_unlink(const char *);
int rump_sys__ksem_close(intptr_t);
int rump_sys__ksem_post(intptr_t);
int rump_sys__ksem_wait(intptr_t);
int rump_sys__ksem_trywait(intptr_t);
int rump_sys__ksem_getvalue(intptr_t, unsigned int *);
int rump_sys__ksem_destroy(intptr_t);
int rump_sys_lchmod(const char *, mode_t);
int rump_sys_lchown(const char *, uid_t, gid_t);
int rump_sys_fchroot(int);

View File

@ -1,14 +1,14 @@
/* $NetBSD: rump_syscalls.c,v 1.45 2010/06/04 16:33:32 njoly Exp $ */
/* $NetBSD: rump_syscalls.c,v 1.46 2010/06/10 19:10:09 pooka Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.234 2010/06/04 16:32:00 njoly Exp
* created from NetBSD: syscalls.master,v 1.235 2010/06/10 19:09:03 pooka Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.45 2010/06/04 16:33:32 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.46 2010/06/10 19:10:09 pooka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -1366,6 +1366,192 @@ rump_sys_modctl(int cmd, void * arg)
}
__weak_alias(sys_modctl,rump_enosys);
int rump_sys__ksem_init(unsigned int, intptr_t *);
int
rump_sys__ksem_init(unsigned int value, intptr_t * idp)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_init_args callarg;
SPARG(&callarg, value) = value;
SPARG(&callarg, idp) = idp;
error = rump_sysproxy(SYS__ksem_init, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_init,rump_enosys);
int rump_sys__ksem_open(const char *, int, mode_t, unsigned int, intptr_t *);
int
rump_sys__ksem_open(const char * name, int oflag, mode_t mode, unsigned int value, intptr_t * idp)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_open_args callarg;
SPARG(&callarg, name) = name;
SPARG(&callarg, oflag) = oflag;
SPARG(&callarg, mode) = mode;
SPARG(&callarg, value) = value;
SPARG(&callarg, idp) = idp;
error = rump_sysproxy(SYS__ksem_open, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_open,rump_enosys);
int rump_sys__ksem_unlink(const char *);
int
rump_sys__ksem_unlink(const char * name)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_unlink_args callarg;
SPARG(&callarg, name) = name;
error = rump_sysproxy(SYS__ksem_unlink, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_unlink,rump_enosys);
int rump_sys__ksem_close(intptr_t);
int
rump_sys__ksem_close(intptr_t id)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_close_args callarg;
SPARG(&callarg, id) = id;
error = rump_sysproxy(SYS__ksem_close, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_close,rump_enosys);
int rump_sys__ksem_post(intptr_t);
int
rump_sys__ksem_post(intptr_t id)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_post_args callarg;
SPARG(&callarg, id) = id;
error = rump_sysproxy(SYS__ksem_post, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_post,rump_enosys);
int rump_sys__ksem_wait(intptr_t);
int
rump_sys__ksem_wait(intptr_t id)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_wait_args callarg;
SPARG(&callarg, id) = id;
error = rump_sysproxy(SYS__ksem_wait, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_wait,rump_enosys);
int rump_sys__ksem_trywait(intptr_t);
int
rump_sys__ksem_trywait(intptr_t id)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_trywait_args callarg;
SPARG(&callarg, id) = id;
error = rump_sysproxy(SYS__ksem_trywait, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_trywait,rump_enosys);
int rump_sys__ksem_getvalue(intptr_t, unsigned int *);
int
rump_sys__ksem_getvalue(intptr_t id, unsigned int * value)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_getvalue_args callarg;
SPARG(&callarg, id) = id;
SPARG(&callarg, value) = value;
error = rump_sysproxy(SYS__ksem_getvalue, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_getvalue,rump_enosys);
int rump_sys__ksem_destroy(intptr_t);
int
rump_sys__ksem_destroy(intptr_t id)
{
register_t rval[2] = {0, 0};
int error = 0;
struct sys__ksem_destroy_args callarg;
SPARG(&callarg, id) = id;
error = rump_sysproxy(SYS__ksem_destroy, rump_sysproxy_arg,
(uint8_t *)&callarg, sizeof(callarg), rval);
if (error) {
rval[0] = -1;
rumpuser_seterrno(error);
}
return rval[0];
}
__weak_alias(sys__ksem_destroy,rump_enosys);
int rump_sys_lchmod(const char *, mode_t);
int
rump_sys_lchmod(const char * path, mode_t mode)
@ -3100,24 +3286,24 @@ struct sysent rump_sysent[] = {
(sy_call_t *)rump_enosys }, /* 245 = unimplemented sys_sigqueue */
{ ns(struct sys_modctl_args), 0,
(sy_call_t *)sys_modctl }, /* 246 = modctl */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 247 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 248 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 249 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 250 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 251 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 252 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 253 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 254 = unrumped */
{ 0, 0, 0,
(sy_call_t *)sys_nomodule }, /* 255 = unrumped */
{ ns(struct sys__ksem_init_args), 0,
(sy_call_t *)sys_nomodule }, /* 247 = _ksem_init */
{ ns(struct sys__ksem_open_args), 0,
(sy_call_t *)sys_nomodule }, /* 248 = _ksem_open */
{ ns(struct sys__ksem_unlink_args), 0,
(sy_call_t *)sys_nomodule }, /* 249 = _ksem_unlink */
{ ns(struct sys__ksem_close_args), 0,
(sy_call_t *)sys_nomodule }, /* 250 = _ksem_close */
{ ns(struct sys__ksem_post_args), 0,
(sy_call_t *)sys_nomodule }, /* 251 = _ksem_post */
{ ns(struct sys__ksem_wait_args), 0,
(sy_call_t *)sys_nomodule }, /* 252 = _ksem_wait */
{ ns(struct sys__ksem_trywait_args), 0,
(sy_call_t *)sys_nomodule }, /* 253 = _ksem_trywait */
{ ns(struct sys__ksem_getvalue_args), 0,
(sy_call_t *)sys_nomodule }, /* 254 = _ksem_getvalue */
{ ns(struct sys__ksem_destroy_args), 0,
(sy_call_t *)sys_nomodule }, /* 255 = _ksem_destroy */
{ 0, 0, 0,
(sy_call_t *)rump_enosys }, /* 256 = unimplemented sys__ksem_timedwait */
{ 0, 0, 0,