Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys regen after syscall update



details:   https://anonhg.NetBSD.org/src/rev/da4e7fce4036
branches:  trunk
changeset: 807401:da4e7fce4036
user:      justin <justin%NetBSD.org@localhost>
date:      Wed Apr 08 13:31:42 2015 +0000

description:
regen after syscall update

diffstat:

 sys/rump/include/rump/rump_syscalls.h       |   7 ++++-
 sys/rump/librump/rumpkern/rump_syscalls.c   |  38 +++++++++++++++++++++++++---
 sys/rump/librump/rumpvfs/rumpvfs_syscalls.c |  10 ++++++-
 sys/rump/rump.sysmap                        |   1 +
 sys/sys/syscallargs.h                       |   4 +--
 5 files changed, 50 insertions(+), 10 deletions(-)

diffs (177 lines):

diff -r 235b023c5398 -r da4e7fce4036 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h     Wed Apr 08 13:24:25 2015 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h     Wed Apr 08 13:31:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_syscalls.h,v 1.82 2015/03/07 16:40:05 christos Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.83 2015/04/08 13:31:42 justin Exp $ */
 
 /*
  * System call protos in rump namespace.
@@ -108,6 +108,10 @@
 #define RUMP_SYS_RENAME_AIO_CANCEL rump___sysimpl_aio_cancel
 #endif
 
+#ifndef RUMP_SYS_RENAME___POSIX_RENAME
+#define RUMP_SYS_RENAME___POSIX_RENAME rump___sysimpl___posix_rename
+#endif
+
 #ifndef RUMP_SYS_RENAME_LISTXATTR
 #define RUMP_SYS_RENAME_LISTXATTR rump___sysimpl_listxattr
 #endif
@@ -937,6 +941,7 @@
 int rump_sys__ksem_getvalue(intptr_t, unsigned int *) __RENAME(RUMP_SYS_RENAME__KSEM_GETVALUE);
 int rump_sys__ksem_destroy(intptr_t) __RENAME(RUMP_SYS_RENAME__KSEM_DESTROY);
 int rump_sys__ksem_timedwait(intptr_t, const struct timespec *) __RENAME(RUMP_SYS_RENAME__KSEM_TIMEDWAIT);
+int rump_sys___posix_rename(const char *, const char *) __RENAME(RUMP_SYS_RENAME___POSIX_RENAME);
 int rump_sys_lchmod(const char *, mode_t) __RENAME(RUMP_SYS_RENAME_LCHMOD);
 int rump_sys_lchown(const char *, uid_t, gid_t) __RENAME(RUMP_SYS_RENAME_LCHOWN);
 int rump_sys_lutimes(const char *, const struct timeval *) __RENAME(RUMP_SYS_RENAME_LUTIMES);
diff -r 235b023c5398 -r da4e7fce4036 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Wed Apr 08 13:24:25 2015 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Wed Apr 08 13:31:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_syscalls.c,v 1.107 2015/03/08 20:32:21 christos Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.108 2015/04/08 13:31:42 justin Exp $ */
 
 /*
  * System call vector and marshalling for rump.
@@ -15,7 +15,7 @@
 
 #ifdef __NetBSD__
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.107 2015/03/08 20:32:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.108 2015/04/08 13:31:42 justin Exp $");
 
 #include <sys/fstypes.h>
 #include <sys/proc.h>
@@ -2954,6 +2954,35 @@
 __strong_alias(_sys__ksem_timedwait,rump___sysimpl__ksem_timedwait);
 #endif /* RUMP_KERNEL_IS_LIBC */
 
+int rump___sysimpl___posix_rename(const char *, const char *);
+int
+rump___sysimpl___posix_rename(const char * from, const char * to)
+{
+       register_t retval[2];
+       int error = 0;
+       int rv = -1;
+       struct sys___posix_rename_args callarg;
+
+       memset(&callarg, 0, sizeof(callarg));
+       SPARG(&callarg, from) = from;
+       SPARG(&callarg, to) = to;
+
+       error = rsys_syscall(SYS___posix_rename, &callarg, sizeof(callarg), retval);
+       rsys_seterrno(error);
+       if (error == 0) {
+               if (sizeof(int) > sizeof(register_t))
+                       rv = *(int *)retval;
+               else
+                       rv = *retval;
+       }
+       return rv;
+}
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(__posix_rename,rump___sysimpl___posix_rename);
+__weak_alias(___posix_rename,rump___sysimpl___posix_rename);
+__strong_alias(_sys___posix_rename,rump___sysimpl___posix_rename);
+#endif /* RUMP_KERNEL_IS_LIBC */
+
 int rump___sysimpl_lchmod(const char *, mode_t);
 int
 rump___sysimpl_lchmod(const char * path, mode_t mode)
@@ -7519,8 +7548,9 @@
                .sy_call = (sy_call_t *)rumpns_enosys,
        },              /* 269 = filler */
        {
-               .sy_call = (sy_call_t *)rumpns_enosys,
-},             /* 270 = __posix_rename */
+               ns(struct sys___posix_rename_args),
+               .sy_call = (sy_call_t *)rumpns_enosys,
+       },              /* 270 = __posix_rename */
        {
                .sy_call = (sy_call_t *)rumpns_enosys,
 },             /* 271 = swapctl */
diff -r 235b023c5398 -r da4e7fce4036 sys/rump/librump/rumpvfs/rumpvfs_syscalls.c
--- a/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c       Wed Apr 08 13:24:25 2015 +0000
+++ b/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c       Wed Apr 08 13:31:42 2015 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: rumpvfs_syscalls.c,v 1.2 2014/04/27 16:30:09 pooka Exp $       */
+/*     $NetBSD: rumpvfs_syscalls.c,v 1.3 2015/04/08 13:31:42 justin Exp $      */
 
 /* AUTOMATICALLY GENERATED BY makerumpsyscalls.sh */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpvfs_syscalls.c,v 1.2 2014/04/27 16:30:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpvfs_syscalls.c,v 1.3 2015/04/08 13:31:42 justin Exp $");
 
 #include <sys/param.h>
 
@@ -41,6 +41,7 @@
 extern sy_call_t sys_truncate;
 extern sy_call_t sys_ftruncate;
 extern sy_call_t sys_fdatasync;
+extern sy_call_t sys___posix_rename;
 extern sy_call_t sys_lchmod;
 extern sy_call_t sys_lchown;
 extern sy_call_t sys_preadv;
@@ -105,6 +106,8 @@
 extern sy_call_t sys_unlinkat;
 extern sy_call_t sys_futimens;
 extern sy_call_t sys___quotactl;
+extern sy_call_t sys_posix_fallocate;
+extern sy_call_t sys_fdiscard;
 
 static const struct rump_onesyscall mysys[] = {
        { 5,    sys_open },
@@ -139,6 +142,7 @@
        { 200,  sys_truncate },
        { 201,  sys_ftruncate },
        { 241,  sys_fdatasync },
+       { 270,  sys___posix_rename },
        { 274,  sys_lchmod },
        { 275,  sys_lchown },
        { 289,  sys_preadv },
@@ -203,6 +207,8 @@
        { 471,  sys_unlinkat },
        { 472,  sys_futimens },
        { 473,  sys___quotactl },
+       { 479,  sys_posix_fallocate },
+       { 480,  sys_fdiscard },
 };
 
 RUMP_COMPONENT(RUMP_COMPONENT_SYSCALL)
diff -r 235b023c5398 -r da4e7fce4036 sys/rump/rump.sysmap
--- a/sys/rump/rump.sysmap      Wed Apr 08 13:24:25 2015 +0000
+++ b/sys/rump/rump.sysmap      Wed Apr 08 13:31:42 2015 +0000
@@ -100,6 +100,7 @@
 254  sys_nomodule           _ksem_getvalue     rump___sysimpl__ksem_getvalue
 255  sys_nomodule           _ksem_destroy      rump___sysimpl__ksem_destroy
 256  sys_nomodule           _ksem_timedwait    rump___sysimpl__ksem_timedwait
+270  sys___posix_rename     __posix_rename     rump___sysimpl___posix_rename
 274  sys_lchmod             lchmod             rump___sysimpl_lchmod
 275  sys_lchown             lchown             rump___sysimpl_lchown
 276  sys_nomodule           lutimes            rump___sysimpl_lutimes
diff -r 235b023c5398 -r da4e7fce4036 sys/sys/syscallargs.h
--- a/sys/sys/syscallargs.h     Wed Apr 08 13:24:25 2015 +0000
+++ b/sys/sys/syscallargs.h     Wed Apr 08 13:31:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscallargs.h,v 1.260 2015/03/07 16:39:20 christos Exp $ */
+/* $NetBSD: syscallargs.h,v 1.261 2015/04/08 13:31:42 justin Exp $ */
 
 /*
  * System call argument lists.
@@ -1681,13 +1681,11 @@
 check_syscall_args(compat_50_sys_mq_timedreceive)
 #endif /* !RUMP_CLIENT */
 
-#ifndef RUMP_CLIENT
 struct sys___posix_rename_args {
        syscallarg(const char *) from;
        syscallarg(const char *) to;
 };
 check_syscall_args(sys___posix_rename)
-#endif /* !RUMP_CLIENT */
 
 #ifndef RUMP_CLIENT
 struct sys_swapctl_args {



Home | Main Index | Thread Index | Old Index