This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Newlib's non-posix'ness [Re: KSH is pdksh]
- To: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Subject: Re: Newlib's non-posix'ness [Re: KSH is pdksh]
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Thu, 25 Jan 2001 19:17:47 -0500
- CC: Cygwin <cygwin at cygwin dot com>, Matthew Smith <matts at bluesguitar dot org>, newlib at sources dot redhat dot com
- References: <Pine.HPP.3.96.1010125162238.14399I-100000@hp2.xraylith.wisc.edu>
- Reply-To: Earnie Boyd <cygwin at cygwin dot com>, newlib at sources dot redhat dot com
Mumit Khan wrote:
>
> 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
> RTEMS!
>
> POSIX:
> ssize_t read (int, void *, size_t);
>
> newlib:
> #ifdef __rtems__
> ssize_t read (int, void *, size_t);
> #else
> int read (int, void *, size_t);
> #endif
>
> 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.
>
There's been other chatter about problems with __rtems__ and Cygwin on
the newlib list; but, it was wrt pthreads. I've CCed newlib on this.
Earnie.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple