This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Friday 03 April 2009 14:40:28 Ken Werner wrote:Patch checked in.
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |