[patch] SPU time cleanup

Ken Werner ken@linux.vnet.ibm.com
Mon Apr 6 10:37:00 GMT 2009

On Friday 03 April 2009 14:40:28 Ken Werner wrote:
> Hi,
> 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.
> Regards
> Ken

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...
Name: time.patch
Type: text/x-patch
Size: 7608 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20090406/5cc419df/attachment.bin>

More information about the Newlib mailing list