This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] change CLOCKS_PER_SEC to match POSIX:XSI
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 7 Oct 2005 11:13:56 +0200
- Subject: Re: [PATCH] change CLOCKS_PER_SEC to match POSIX:XSI
- References: <434586BF.5090001@tensilica.com>
- Reply-to: newlib at sources dot redhat dot com
On Oct 6 13:19, Bob Wilson wrote:
> The XSI extension to POSIX requires that CLOCKS_PER_SEC be defined to one
> million. The current value in newlib, except for RTEMS and ARM, is 1000.
> Since this value seems pretty arbitrary, wouldn't it be better to go with
> the POSIX value? Here is a patch to change it.
>
> 2005-10-06 Bob Wilson <bob.wilson@acm.org>
>
> * libc/include/time.h (CLOCKS_PER_SEC): Define to 1000000.
Careful, please. This could break newly compiled applications on
systems using the CLOCKS_PER_SEC macro internally.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.