Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen: ksem syscalls
details: https://anonhg.NetBSD.org/src/rev/3579474420ca
branches: trunk
changeset: 755589:3579474420ca
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jun 10 19:10:09 2010 +0000
description:
regen: ksem syscalls
diffstat:
sys/rump/include/rump/rump_syscalls.h | 13 +-
sys/rump/librump/rumpkern/rump_syscalls.c | 228 +++++++++++++++++++++++++++--
2 files changed, 218 insertions(+), 23 deletions(-)
diffs (289 lines):
diff -r ff9d5156495b -r 3579474420ca sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Thu Jun 10 19:09:03 2010 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Thu Jun 10 19:10:09 2010 +0000
@@ -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_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);
diff -r ff9d5156495b -r 3579474420ca sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Thu Jun 10 19:09:03 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Thu Jun 10 19:10:09 2010 +0000
@@ -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 @@
}
__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 @@
(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,
Home |
Main Index |
Thread Index |
Old Index