[PATCH] SPU Add support for nanosleep, sleep and usleep

Patrick Mansfield patmans@us.ibm.com
Wed Jun 13 23:12:00 GMT 2007


On Wed, Jun 13, 2007 at 01:38:18PM -0400, Jeff Johnston wrote:
> Patrick Mansfield wrote:

> >Jeff -
> >
> >Not for this patch, but should I just remove the #ifdef CYGWIN etc. if I
> >am exposing an existing POSIX prototype?
> 
> Not sure what you mean by this.

Like ftruncate and truncate are in sys/unistd.h inside #ifdef's, but they
are POSIX. For SPU support, should I add another ifdef, or remove all the
other ifdefs?

> >For new POSIX prototypes do I need an #ifdef? For example, I'm adding
> >lockf() and defines for it, do you want an #ifdef __SPU__ around it?
> >
> 
> For now, unless Cygwin and RTEMS want to use them too.

OK.

-- Patrick Mansfield



More information about the Newlib mailing list