Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Make clock_t unsigned int everywhere.



details:   https://anonhg.NetBSD.org/src/rev/0e869acfda01
branches:  trunk
changeset: 338933:0e869acfda01
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jun 17 14:32:31 2015 +0000

description:
Make clock_t unsigned int everywhere.
Ok: matt@, mrg@

diffstat:

 sys/arch/hppa/include/ansi.h     |  4 ++--
 sys/arch/i386/include/ansi.h     |  4 ++--
 sys/arch/m68k/include/ansi.h     |  4 ++--
 sys/arch/sh3/include/ansi.h      |  4 ++--
 sys/arch/sparc/include/ansi.h    |  4 ++--
 sys/arch/usermode/include/ansi.h |  6 ++----
 6 files changed, 12 insertions(+), 14 deletions(-)

diffs (125 lines):

diff -r a0647bd5d8ba -r 0e869acfda01 sys/arch/hppa/include/ansi.h
--- a/sys/arch/hppa/include/ansi.h      Wed Jun 17 14:21:22 2015 +0000
+++ b/sys/arch/hppa/include/ansi.h      Wed Jun 17 14:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.13 2011/07/17 20:54:41 joerg Exp $  */
+/*     $NetBSD: ansi.h,v 1.14 2015/06/17 14:32:31 martin Exp $ */
 
 /*     $OpenBSD: ansi.h,v 1.4 2000/02/22 17:29:12 millert Exp $        */
 
@@ -48,7 +48,7 @@
  *     #undef  _BSD_SIZE_T_
  *     #endif
  */
-#define        _BSD_CLOCK_T_   unsigned long int       /* clock() */
+#define        _BSD_CLOCK_T_   unsigned int            /* clock() */
 #define        _BSD_PTRDIFF_T_ long int                /* ptr1 - ptr2 */
 #define        _BSD_SIZE_T_    unsigned long int       /* sizeof() */
 #define        _BSD_SSIZE_T_   long int                /* byte count or error */
diff -r a0647bd5d8ba -r 0e869acfda01 sys/arch/i386/include/ansi.h
--- a/sys/arch/i386/include/ansi.h      Wed Jun 17 14:21:22 2015 +0000
+++ b/sys/arch/i386/include/ansi.h      Wed Jun 17 14:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.26 2014/12/09 14:39:49 pooka Exp $  */
+/*     $NetBSD: ansi.h,v 1.27 2015/06/17 14:32:31 martin Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -47,7 +47,7 @@
  *     #undef  _BSD_SIZE_T_
  *     #endif
  */
-#define        _BSD_CLOCK_T_           unsigned long   /* clock() */
+#define        _BSD_CLOCK_T_           unsigned int    /* clock() */
 #define        _BSD_PTRDIFF_T_         int             /* ptr1 - ptr2 */
 #define        _BSD_SIZE_T_            unsigned int    /* sizeof() */
 #define        _BSD_SSIZE_T_           int             /* byte count or error */
diff -r a0647bd5d8ba -r 0e869acfda01 sys/arch/m68k/include/ansi.h
--- a/sys/arch/m68k/include/ansi.h      Wed Jun 17 14:21:22 2015 +0000
+++ b/sys/arch/m68k/include/ansi.h      Wed Jun 17 14:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.23 2011/07/17 20:54:43 joerg Exp $  */
+/*     $NetBSD: ansi.h,v 1.24 2015/06/17 14:32:31 martin Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
  *     #undef  _BSD_SIZE_T_
  *     #endif
  */
-#define        _BSD_CLOCK_T_           unsigned long   /* clock() */
+#define        _BSD_CLOCK_T_           unsigned int    /* clock() */
 #define        _BSD_PTRDIFF_T_         int             /* ptr1 - ptr2 */
 #define        _BSD_SIZE_T_            unsigned int    /* sizeof() */
 #define        _BSD_SSIZE_T_           int             /* byte count or error */
diff -r a0647bd5d8ba -r 0e869acfda01 sys/arch/sh3/include/ansi.h
--- a/sys/arch/sh3/include/ansi.h       Wed Jun 17 14:21:22 2015 +0000
+++ b/sys/arch/sh3/include/ansi.h       Wed Jun 17 14:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.15 2011/07/17 20:54:47 joerg Exp $  */
+/*     $NetBSD: ansi.h,v 1.16 2015/06/17 14:32:31 martin Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -45,7 +45,7 @@
  *     #undef  _BSD_SIZE_T_
  *     #endif
  */
-#define        _BSD_CLOCK_T_           unsigned long   /* clock() */
+#define        _BSD_CLOCK_T_           unsigned int    /* clock() */
 #define        _BSD_PTRDIFF_T_         int             /* ptr1 - ptr2 */
 #define        _BSD_SIZE_T_            unsigned int    /* sizeof() */
 #define        _BSD_SSIZE_T_           int             /* byte count or error */
diff -r a0647bd5d8ba -r 0e869acfda01 sys/arch/sparc/include/ansi.h
--- a/sys/arch/sparc/include/ansi.h     Wed Jun 17 14:21:22 2015 +0000
+++ b/sys/arch/sparc/include/ansi.h     Wed Jun 17 14:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.23 2011/07/17 20:54:47 joerg Exp $ */
+/*     $NetBSD: ansi.h,v 1.24 2015/06/17 14:32:32 martin Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
  *     #undef  _BSD_SIZE_T_
  *     #endif
  */
-#define        _BSD_CLOCK_T_           unsigned long   /* clock() */
+#define        _BSD_CLOCK_T_           unsigned int    /* clock() */
 #define        _BSD_PTRDIFF_T_         long            /* ptr1 - ptr2 */
 #define        _BSD_SIZE_T_            unsigned long   /* sizeof() */
 #define        _BSD_SSIZE_T_           long            /* byte count or error */
diff -r a0647bd5d8ba -r 0e869acfda01 sys/arch/usermode/include/ansi.h
--- a/sys/arch/usermode/include/ansi.h  Wed Jun 17 14:21:22 2015 +0000
+++ b/sys/arch/usermode/include/ansi.h  Wed Jun 17 14:32:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ansi.h,v 1.4 2013/11/10 19:52:01 jmcneill Exp $ */
+/* $NetBSD: ansi.h,v 1.5 2015/06/17 14:32:32 martin Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -32,6 +32,7 @@
 #include <sys/cdefs.h>
 #include <machine/int_types.h>
 
+#define _BSD_CLOCK_T_          unsigned int
 #define _BSD_TIME_T_           __int64_t
 #define _BSD_CLOCKID_T_                int
 #define _BSD_TIMER_T_          int
@@ -41,17 +42,14 @@
 #define _BSD_WINT_T_           int
 
 #if defined(__i386__)
-#define _BSD_CLOCK_T_          unsigned long
 #define _BSD_PTRDIFF_T_                int
 #define _BSD_SIZE_T_           unsigned int
 #define _BSD_SSIZE_T_          int
 #elif defined(__x86_64__)
-#define _BSD_CLOCK_T_          unsigned int
 #define _BSD_PTRDIFF_T_                long
 #define _BSD_SIZE_T_           unsigned long
 #define _BSD_SSIZE_T_          long
 #elif defined(__arm__)
-#define _BSD_CLOCK_T_          unsigned int
 #define _BSD_PTRDIFF_T_                long int
 #define _BSD_SIZE_T_           unsigned long int
 #define _BSD_SSIZE_T_          long int



Home | Main Index | Thread Index | Old Index