Useful function declarations

jjohnstn jjohnstn@redhat.com
Sun Mar 6 20:08:00 GMT 2005


On Tue, 1 Mar 2005, Shaun Jackman wrote:

> A number of useful function declarations, such as ftruncate, are
> hidden behind #if defined(__CYGWIN__) or #if defined(__rtems__). I'm
> wary of defining these symbols for unwanted side effects. How about
> another symbol such as __SUSv2__ or __I_WANT_IT_ALL_BABY__ such that
> all #if defined(__rtems__) become #if defined(__rtems__) ||
> defined(__SUSv2__), or whichever symbol is appropriate.
>

Ok.  Are you willing to put together a patch?  My preference would be a 
symbol that is unlikely to be used by something else like gcc (e.g.. 
prefix with __newlib_).  If optional, it should be put in the newlib.h
header file.
 
> I'm compiling busybox with newlib for arm-elf and found I had to
> modify by hand some 26 header files, most of which already had the
> function declaration I wanted, but had it hidden behind __CYGWIN__ or
> __rtems__.
> 
> Cheers,
> Shaun
> 



More information about the Newlib mailing list