Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Make compat netbsd32 clock_getres copyou...



details:   https://anonhg.NetBSD.org/src/rev/15e1cd7edcc3
branches:  trunk
changeset: 753456:15e1cd7edcc3
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Mar 29 11:39:45 2010 +0000

description:
Make compat netbsd32 clock_getres copyout the netbsd32 timespec
structure, not the native one.

diffstat:

 sys/compat/netbsd32/netbsd32_compat_50.c |  6 +++---
 sys/compat/netbsd32/netbsd32_time.c      |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r cb6a875b955d -r 15e1cd7edcc3 sys/compat/netbsd32/netbsd32_compat_50.c
--- a/sys/compat/netbsd32/netbsd32_compat_50.c  Mon Mar 29 11:01:16 2010 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_50.c  Mon Mar 29 11:39:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_50.c,v 1.11 2010/03/28 22:03:51 njoly Exp $    */
+/*     $NetBSD: netbsd32_compat_50.c,v 1.12 2010/03/29 11:39:45 njoly Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_50.c,v 1.11 2010/03/28 22:03:51 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_50.c,v 1.12 2010/03/29 11:39:45 njoly Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -372,7 +372,7 @@
                ts.tv_nsec = 1000000000 / hz;
 
                netbsd32_from_timespec50(&ts, &ts32);
-               error = copyout(&ts, SCARG_P32(uap, tp), sizeof(ts));
+               error = copyout(&ts32, SCARG_P32(uap, tp), sizeof(ts32));
        }
 
        return error;
diff -r cb6a875b955d -r 15e1cd7edcc3 sys/compat/netbsd32/netbsd32_time.c
--- a/sys/compat/netbsd32/netbsd32_time.c       Mon Mar 29 11:01:16 2010 +0000
+++ b/sys/compat/netbsd32/netbsd32_time.c       Mon Mar 29 11:39:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_time.c,v 1.37 2010/03/28 22:03:51 njoly Exp $ */
+/*     $NetBSD: netbsd32_time.c,v 1.38 2010/03/29 11:39:45 njoly Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.37 2010/03/28 22:03:51 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.38 2010/03/29 11:39:45 njoly Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ntp.h"
@@ -412,7 +412,7 @@
                ts.tv_nsec = 1000000000 / hz;
 
                netbsd32_from_timespec(&ts, &ts32);
-               error = copyout(&ts, SCARG_P32(uap, tp), sizeof(ts));
+               error = copyout(&ts32, SCARG_P32(uap, tp), sizeof(ts32));
        }
 
        return error;



Home | Main Index | Thread Index | Old Index