Newlib's non-posix'ness [Re: KSH is pdksh]

Mumit Khan khan@NanoTech.Wisc.EDU
Thu Jan 25 14:31:00 GMT 2001

On Thu, 25 Jan 2001, Earnie Boyd wrote:

> Matthew Smith wrote:
> > 
> > Can anyone suggest an elegant way around this?
> > 
> Fix the code.  Remove the redefinitions.

FYI, it's newlib that provides the incorrect declaration. It's one of 
those cases where newlib's declarations don't quite match POSIX/UNIX98, 
but small enough that nobody has bothered to fix those. Mostly has to 
do with signed vs unsigned (eg., size_t vs ssize_t) and those little
nits. Interestingly enough, someone, quite possibly Joel Scherrill, had 
gone through newlib and fixed most of these, if not all, but only for 

    ssize_t read (int, void *, size_t);

    #ifdef __rtems__
      ssize_t read (int, void *, size_t);
      int read (int, void *, size_t);

Perhaps Chris and/or DJ know why that is the case.

When you have a conflict between Glenn Fowler's AT&T AST and another 
library, chances are that AST is doing the right thing.


Want to unsubscribe from this list?
Check out:

More information about the Cygwin mailing list