[patch] SPU time cleanup

Jeff Johnston jjohnstn@redhat.com
Mon Apr 6 22:53:00 GMT 2009


Ken Werner wrote:
> 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 
> include/machine/time.h.
>
> Ken
>
>   
Patch checked in.

-- Jeff J.



More information about the Newlib mailing list