This is the mail archive of the newlib@sources.redhat.com 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]

Re: Useful function declarations


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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]