Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Thu, 25 Jan 2001 16:30:52 -0600 (CST)
From: Mumit Khan <khan@NanoTech.Wisc.EDU>
To: Cygwin <cygwin@sources.redhat.com>
cc: Matthew Smith <matts@bluesguitar.org>
Subject: Newlib's non-posix'ness [Re: KSH is pdksh]
In-Reply-To: <3A709B7F.7F908FA0@yahoo.com>
Message-ID: <Pine.HPP.3.96.1010125162238.14399I-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

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.

Regards,
Mumit



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

