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]

Re: [PATCH] Change strerror_r definition for cygwin


On Fri, 2005-08-26 at 12:58 -0400, Christopher Faylor wrote:
> On Fri, Aug 26, 2005 at 11:27:13AM +0200, Ralf Corsepius wrote:
> >/me thinks, the former is defect in SUSv3, so I am inclined to agree
> >with Christopher's plan.
> 
> Unfortunately, although linux claims the old implementation is obsolete,
> my FC4 system still defaults to it and requires some gcc command line defines
> to get to the new version.

Yeah, sometimes, it's time to ignore Linux ...
 
FYI: FreeBSD's string.h:
...
#if __POSIX_VISIBLE >= 200112
int      strerror_r(int, char *, size_t);
#endif
...

=> They also require additional defs to get strerror_r. They require
users to give _POSIX_C_SOURCE >= 200112, otherwise strerror_r is not
available at all.

Looks like the same approach as applied by glibc2. 

How about adopting it to newlib?


@Corinna:
> Yes, this looks definitely like a bug in the SUSv3 specification.  Did
> you report it to the Open Group?
No, but the defects already has been reported before. At least a
corresponding report against XBD can be found in their defect reports.

Ralf



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