Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 20:11:37 +0000 (GMT) From: Ghanshyam To: cygwin AT cygwin DOT com cc: harsh_arora AT mentorg DOT com Subject: 1.5.5.1 fgetc returns no error for bad file descriptor Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi All, 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". Regards, ghanshyam -- 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/