www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/08/09:06:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 8 Mar 2004 09:06:01 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.5.1 fgetc returns no error for bad file descriptor
Message-ID: <20040308140601.GC30618@redhat.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10403081448370 DOT 27580-100000 AT denver DOT india DOT mentorg DOT com>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.4.10.10403081448370.27580-100000@denver.india.mentorg.com>
User-Agent: Mutt/1.4.1i
Reply-To: cygwin AT cygwin DOT com
Note-from-DJ: This may be spam

On Mon, Mar 08, 2004 at 08:11:37PM +0000, Ghanshyam wrote:
>The 9th assertion of fgetc in "IEEE std 2003.1-1992 Test Methods for
>Measuring Conformance to Posix-Part1 System Interface" document states:
>When the stream pointer argument addresses a file descriptor that is
>not open for reading, then a call to fgetc()returns a value of EOF and
>sets errno to [EBADF].  The current implementation does not set any
>errno.  It says "No error".

Since this is a simple thing to demonstrate, rather than have someone go
to the effort of writing a test program to see if your assertion is
correct, why not submit a test program which demonstrates the problem
that you are allegedly seeing?

You could even take the extra step of submitting a patch to fix this
behavior.  The code in question is in newlib.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam AT sourceware DOT org
and be permanently blocked from mailing lists at sources.redhat.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019