Make clock_t unsigned int everywhere.

Ok: matt@, mrg@
This commit is contained in:
martin 2015-06-17 14:32:31 +00:00
parent 430297e761
commit e7a3928268
6 changed files with 12 additions and 14 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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>
@ -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