This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: feature request: sleep() and usleep() for ARM
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- To: Shaun Jackman <sjackman at pathwayconnect dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Fri, 23 Nov 2001 18:54:59 -0500
- Subject: Re: feature request: sleep() and usleep() for ARM
- Organization: Red Hat Inc.
- References: <E166in9-0001DD-00@dazed>
Shaun Jackman wrote:
>
> I have a feature request for newlib: sleep() and usleep() for the ARM.
> If the target implements SWI_Clock and SWI_Time this should be pretty trivial.
>
> Alternatively, is the newlib group open to patches from outside? What's the
> release schedule?
>
> Thanks!
> Shaun
> (please cc me, as I'm not a member of the mailing list)
Yes, we are open to patches from outside parties. That is the purpose of
open software.
It would probably make sense to add sleep() and usleep() to the libc/time
directory and have them use _times_r() and _gettimeofday_r() like clock() and
time() do. That way additional platforms other than ARM could also use these
routines. Configurations with truer posix support would override them (e.g.
linux and cygwin).
I will put something together and post it here.
-- Jeff J.