From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14427 invoked by alias); 13 Sep 2012 13:52:39 -0000 Received: (qmail 14196 invoked by uid 22791); 13 Sep 2012 13:52:37 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Sep 2012 13:52:25 +0000 From: "siddhesh at redhat dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug stdio/1190] fgetc()/fread() behaviour is not POSIX compliant Date: Thu, 13 Sep 2012 13:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: siddhesh at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: siddhesh at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00099.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=1190 --- Comment #13 from Siddhesh Poyarekar 2012-09-13 13:52:06 UTC --- The change is quite simple, but a comment in fileops.c says that this behaviour is retained for sysv compatibility: ... int _IO_new_file_underflow (fp) _IO_FILE *fp; { _IO_ssize_t count; #if 0 /* SysV does not make this test; take it out for compatibility */ if (fp->_flags & _IO_EOF_SEEN) return (EOF); #endif ... I'm not sure if this is valid anymore, so I'll try to find out what the current status is, unless someone here already knows the answer. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.