Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern belated regen (posix_fallocate, re...



details:   https://anonhg.NetBSD.org/src/rev/b26629cf8bc8
branches:  trunk
changeset: 336306:b26629cf8bc8
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 25 13:20:05 2015 +0000

description:
belated regen (posix_fallocate, readlinkat)

diffstat:

 sys/rump/librump/rumpkern/rump_syscalls.c |  30 +++++++++++++-----------------
 1 files changed, 13 insertions(+), 17 deletions(-)

diffs (81 lines):

diff -r f9718fba4b26 -r b26629cf8bc8 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Wed Feb 25 13:16:58 2015 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Wed Feb 25 13:20:05 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.c,v 1.104 2014/07/25 08:27:36 dholland Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.105 2015/02/25 13:20:05 christos Exp $ */
 
 /*
  * System call vector and marshalling for rump.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.270 2014/07/25 08:25:47 dholland Exp
+ * created from        NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp
  */
 
 #ifdef RUMP_CLIENT
@@ -15,7 +15,7 @@
 
 #ifdef __NetBSD__
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.104 2014/07/25 08:27:36 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.105 2015/02/25 13:20:05 christos Exp $");
 
 #include <sys/fstypes.h>
 #include <sys/proc.h>
@@ -6072,13 +6072,13 @@
 __strong_alias(_sys_openat,rump___sysimpl_openat);
 #endif /* RUMP_KERNEL_IS_LIBC */
 
-int rump___sysimpl_readlinkat(int, const char *, char *, size_t);
-int
+ssize_t rump___sysimpl_readlinkat(int, const char *, char *, size_t);
+ssize_t
 rump___sysimpl_readlinkat(int fd, const char * path, char * buf, size_t bufsize)
 {
        register_t retval[2];
        int error = 0;
-       int rv = -1;
+       ssize_t rv = -1;
        struct sys_readlinkat_args callarg;
 
        memset(&callarg, 0, sizeof(callarg));
@@ -6090,8 +6090,8 @@
        error = rsys_syscall(SYS_readlinkat, &callarg, sizeof(callarg), retval);
        rsys_seterrno(error);
        if (error == 0) {
-               if (sizeof(int) > sizeof(register_t))
-                       rv = *(int *)retval;
+               if (sizeof(ssize_t) > sizeof(register_t))
+                       rv = *(ssize_t *)retval;
                else
                        rv = *retval;
        }
@@ -6320,7 +6320,6 @@
 rump___sysimpl_posix_fallocate(int fd, off_t pos, off_t len)
 {
        register_t retval[2];
-       int error = 0;
        int rv = -1;
        struct sys_posix_fallocate_args callarg;
 
@@ -6330,14 +6329,11 @@
        SPARG(&callarg, pos) = pos;
        SPARG(&callarg, len) = len;
 
-       error = rsys_syscall(SYS_posix_fallocate, &callarg, sizeof(callarg), retval);
-       rsys_seterrno(error);
-       if (error == 0) {
-               if (sizeof(int) > sizeof(register_t))
-                       rv = *(int *)retval;
-               else
-                       rv = *retval;
-       }
+       rsys_syscall(SYS_posix_fallocate, &callarg, sizeof(callarg), retval);
+       if (sizeof(int) > sizeof(register_t))
+               rv = *(int *)retval;
+       else
+               rv = *retval;
        return rv;
 }
 #ifdef RUMP_KERNEL_IS_LIBC



Home | Main Index | Thread Index | Old Index