From owner-cvs-usrbin Sat Nov 16 23:52:12 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA02895 for cvs-usrbin-outgoing; Sat, 16 Nov 1996 23:52:12 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA02838; Sat, 16 Nov 1996 23:51:46 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id IAA09095; Sun, 17 Nov 1996 08:51:44 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA24013; Sun, 17 Nov 1996 08:51:43 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id IAA11061; Sun, 17 Nov 1996 08:48:01 +0100 (MET) From: J Wunsch Message-Id: <199611170748.IAA11061@uriah.heep.sax.de> Subject: Re: cvs commit: src/usr.bin/sed main.c To: wosch@cs.tu-berlin.de (Wolfram Schneider) Date: Sun, 17 Nov 1996 08:48:01 +0100 (MET) Cc: joerg_wunsch@uriah.heep.sax.de, bde@zeta.org.au, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, joerg@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199611170350.EAA02826@campa.panke.de> from Wolfram Schneider at "Nov 17, 96 04:50:23 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Wolfram Schneider wrote: > >> Erm, as I told the submitter, this introduces C programmer's bug > >> #: feof() is not valid until EOF has been read. > > > >Huh? I can't find any reference claiming this. > > The reference is in my private mail box, as Bruce wrote. Nope, my question was which standard claims that feof() could return wrong results after a successful fopen() but before reaching the EOF of the stream. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)