Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/rump/librump/rumpkern/rump_syscalls.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/rump/librump/rumpkern/rump_syscalls.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.74 retrieving revision 1.74.2.1 diff -u -p -r1.74 -r1.74.2.1 --- src/sys/rump/librump/rumpkern/rump_syscalls.c 2011/08/08 12:17:28 1.74 +++ src/sys/rump/librump/rumpkern/rump_syscalls.c 2012/04/17 00:08:49 1.74.2.1 @@ -1,14 +1,14 @@ -/* $NetBSD: rump_syscalls.c,v 1.74 2011/08/08 12:17:28 manu Exp $ */ +/* $NetBSD: rump_syscalls.c,v 1.74.2.1 2012/04/17 00:08:49 yamt Exp $ */ /* * System call vector and marshalling for rump. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.251 2011/08/08 12:08:53 manu Exp + * created from NetBSD: syscalls.master,v 1.258 2012/03/08 21:55:45 joerg Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.74 2011/08/08 12:17:28 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.74.2.1 2012/04/17 00:08:49 yamt Exp $"); #include #include @@ -2334,6 +2334,30 @@ rump___sysimpl__ksem_destroy(intptr_t id } rsys_alias(sys__ksem_destroy,rump_enosys) +int rump___sysimpl__ksem_timedwait(intptr_t, const struct timespec *); +int +rump___sysimpl__ksem_timedwait(intptr_t id, const struct timespec * abstime) +{ + register_t retval[2] = {0, 0}; + int error = 0; + int rv = -1; + struct sys__ksem_timedwait_args callarg; + + SPARG(&callarg, id) = id; + SPARG(&callarg, abstime) = abstime; + + error = rsys_syscall(SYS__ksem_timedwait, &callarg, sizeof(callarg), retval); + rsys_seterrno(error); + if (error == 0) { + if (sizeof(int) > sizeof(register_t)) + rv = *(int *)retval; + else + rv = *retval; + } + return rv; +} +rsys_alias(sys__ksem_timedwait,rump_enosys) + int rump___sysimpl_lchmod(const char *, mode_t); int rump___sysimpl_lchmod(const char * path, mode_t mode) @@ -3998,30 +4022,6 @@ rump___sysimpl_fhstat50(const void * fhp } rsys_alias(sys___fhstat50,rump_enosys) -int rump___sysimpl_quotactl50(const char *, struct plistref *); -int -rump___sysimpl_quotactl50(const char * path, struct plistref * pref) -{ - register_t retval[2] = {0, 0}; - int error = 0; - int rv = -1; - struct sys___quotactl50_args callarg; - - SPARG(&callarg, path) = path; - SPARG(&callarg, pref) = pref; - - error = rsys_syscall(SYS___quotactl50, &callarg, sizeof(callarg), retval); - rsys_seterrno(error); - if (error == 0) { - if (sizeof(int) > sizeof(register_t)) - rv = *(int *)retval; - else - rv = *retval; - } - return rv; -} -rsys_alias(sys___quotactl50,rump_enosys) - int rump___sysimpl_pipe2(int *, int); int rump___sysimpl_pipe2(int * fildes, int flags) @@ -4508,6 +4508,54 @@ rump___sysimpl_unlinkat(int fd, const ch } rsys_alias(sys_unlinkat,rump_enosys) +int rump___sysimpl_futimens(int, const struct timespec *); +int +rump___sysimpl_futimens(int fd, const struct timespec * tptr) +{ + register_t retval[2] = {0, 0}; + int error = 0; + int rv = -1; + struct sys_futimens_args callarg; + + SPARG(&callarg, fd) = fd; + SPARG(&callarg, tptr) = tptr; + + error = rsys_syscall(SYS_futimens, &callarg, sizeof(callarg), retval); + rsys_seterrno(error); + if (error == 0) { + if (sizeof(int) > sizeof(register_t)) + rv = *(int *)retval; + else + rv = *retval; + } + return rv; +} +rsys_alias(sys_futimens,rump_enosys) + +int rump___sysimpl___quotactl(const char *, struct quotactl_args *); +int +rump___sysimpl___quotactl(const char * path, struct quotactl_args * args) +{ + register_t retval[2] = {0, 0}; + int error = 0; + int rv = -1; + struct sys___quotactl_args callarg; + + SPARG(&callarg, path) = path; + SPARG(&callarg, args) = args; + + error = rsys_syscall(SYS___quotactl, &callarg, sizeof(callarg), retval); + rsys_seterrno(error); + if (error == 0) { + if (sizeof(int) > sizeof(register_t)) + rv = *(int *)retval; + else + rv = *retval; + } + return rv; +} +rsys_alias(sys___quotactl,rump_enosys) + int rump_sys_pipe(int *); int rump_sys_pipe(int *fd) @@ -5096,8 +5144,8 @@ struct sysent rump_sysent[] = { (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, SYCALL_NOSYS, - (sy_call_t *)rump_enosys }, /* 256 = unimplemented sys__ksem_timedwait */ + { ns(struct sys__ksem_timedwait_args), 0, + (sy_call_t *)sys_nomodule }, /* 256 = _ksem_timedwait */ { 0, 0, 0, (sy_call_t *)sys_nomodule }, /* 257 = mq_open */ { 0, 0, 0, @@ -5523,8 +5571,8 @@ struct sysent rump_sysent[] = { (sy_call_t *)sys___mknod50 }, /* 450 = __mknod50 */ { ns(struct sys___fhstat50_args), 0, (sy_call_t *)sys___fhstat50 }, /* 451 = __fhstat50 */ - { ns(struct sys___quotactl50_args), 0, - (sy_call_t *)sys___quotactl50 }, /* 452 = __quotactl50 */ + { 0, 0, SYCALL_NOSYS, + (sy_call_t *)rump_enosys }, /* 452 = obsolete 5.99 quotactl */ { ns(struct sys_pipe2_args), 0, (sy_call_t *)sys_pipe2 }, /* 453 = pipe2 */ { ns(struct sys_dup3_args), 0, @@ -5563,12 +5611,12 @@ struct sysent rump_sysent[] = { (sy_call_t *)sys_symlinkat }, /* 470 = symlinkat */ { ns(struct sys_unlinkat_args), 0, (sy_call_t *)sys_unlinkat }, /* 471 = unlinkat */ + { ns(struct sys_futimens_args), 0, + (sy_call_t *)sys_futimens }, /* 472 = futimens */ + { ns(struct sys___quotactl_args), 0, + (sy_call_t *)sys___quotactl }, /* 473 = __quotactl */ { 0, 0, SYCALL_NOSYS, - (sy_call_t *)rump_enosys }, /* 472 = filler */ - { 0, 0, SYCALL_NOSYS, - (sy_call_t *)rump_enosys }, /* 473 = filler */ - { 0, 0, SYCALL_NOSYS, - (sy_call_t *)rump_enosys }, /* 474 = filler */ + (sy_call_t *)rump_enosys }, /* 474 = posix_spawn */ { 0, 0, SYCALL_NOSYS, (sy_call_t *)rump_enosys }, /* 475 = filler */ { 0, 0, SYCALL_NOSYS,