Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 futimens uses two timespec as well.



details:   https://anonhg.NetBSD.org/src/rev/ef0b56d46e9a
branches:  trunk
changeset: 788705:ef0b56d46e9a
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jul 18 14:14:00 2013 +0000

description:
futimens uses two timespec as well.

diffstat:

 sys/compat/netbsd32/netbsd32_fs.c |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (46 lines):

diff -r 613d4d1549c0 -r ef0b56d46e9a sys/compat/netbsd32/netbsd32_fs.c
--- a/sys/compat/netbsd32/netbsd32_fs.c Thu Jul 18 14:07:43 2013 +0000
+++ b/sys/compat/netbsd32/netbsd32_fs.c Thu Jul 18 14:14:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_fs.c,v 1.66 2013/07/18 14:07:43 matt Exp $    */
+/*     $NetBSD: netbsd32_fs.c,v 1.67 2013/07/18 14:14:00 matt Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.66 2013/07/18 14:07:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.67 2013/07/18 14:14:00 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1271,21 +1271,22 @@
                syscallarg(int) fd;
                syscallarg(netbsd32_timespecp_t) tptr;
        } */
-       struct netbsd32_timespec ts32;
-       struct timespec ts;
+       struct netbsd32_timespec ts32[2];
+       struct timespec ts[2];
        file_t *fp;
        int error;
 
-       if ((error = copyin(SCARG_P32(uap, tptr), &ts32, sizeof(ts32))) != 0)
+       if ((error = copyin(SCARG_P32(uap, tptr), ts32, sizeof(ts32))) != 0)
                return (error);
 
-       netbsd32_to_timespec(&ts32, &ts);
+       netbsd32_to_timespec(&ts32[0], &ts[0]);
+       netbsd32_to_timespec(&ts32[1], &ts[1]);
 
        /* fd_getvnode() will use the descriptor for us */
        if ((error = fd_getvnode(SCARG(uap, fd), &fp)) != 0)
                return (error);
        error = do_sys_utimensat(l, AT_FDCWD, fp->f_data, NULL, 0,
-           &ts, UIO_SYSSPACE);
+           ts, UIO_SYSSPACE);
        fd_putfile(SCARG(uap, fd));
        return (error);
 }



Home | Main Index | Thread Index | Old Index