Module Name: src Committed By: matt Date: Thu Jul 18 14:14:00 UTC 2013
Modified Files: src/sys/compat/netbsd32: netbsd32_fs.c Log Message: futimens uses two timespec as well. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/compat/netbsd32/netbsd32_fs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/netbsd32/netbsd32_fs.c diff -u src/sys/compat/netbsd32/netbsd32_fs.c:1.66 src/sys/compat/netbsd32/netbsd32_fs.c:1.67 --- src/sys/compat/netbsd32/netbsd32_fs.c:1.66 Thu Jul 18 14:07:43 2013 +++ src/sys/compat/netbsd32/netbsd32_fs.c Thu Jul 18 14:14:00 2013 @@ -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 @@ netbsd32_futimens(struct lwp *l, const s 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); }