This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Useful function declarations
- From: jjohnstn <jjohnstn at redhat dot com>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Sun, 6 Mar 2005 15:07:53 -0500 (EST)
- Subject: 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
>