[patch] SPU time cleanup
Mon Apr 6 10:37:00 GMT 2009
On Friday 03 April 2009 14:40:28 Ken Werner wrote:
> Some of the functions declared by time.h are not implemented on the spu
> target. This patch undefines _POSIX_TIMERS for the SPU and implements stubs
> for the remaining functions.
The undefine of _POSIX_TIMERS in sys/features.h prevents the clock_* and
timer_* prototypes from beeing exposed on the SPU. Since nanosleep is the only
function of the _POSIX_TIMERS family which is currently implemented (on the
SPU) I moved the prototype into the machine header.
In addition spu/times.c implements a stub for the times function declared in
sys/times.h. The spu/setitimer.c and spu/getitimer.c implement stubs for the
corresponding functions declared in sys/time.h.
The attached patch equates the former one except for the Changelog entry of
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7608 bytes
Desc: not available
More information about the Newlib