Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!zehntel!dual!amdcad!decwrl!sun!shannon From: shannon@sun.uucp (Bill Shannon) Newsgroups: net.unix-wizards Subject: Re: Re: 4.2bsd eof flag in stdio Message-ID: <1825@sun.uucp> Date: Sat, 1-Dec-84 18:22:03 EST Article-I.D.: sun.1825 Posted: Sat Dec 1 18:22:03 1984 Date-Received: Tue, 4-Dec-84 05:37:12 EST References: <126@ISM780B.UUCP> Organization: Sun Microsystems, Inc. Lines: 24 Jim Balter says, "show me the manual page for fread that says that 0 is returned upon EOF!" Here's an excerpt from the 4.2BSD man page for fread, V7 is identical: DESCRIPTION Fread reads, into a block beginning at ptr, nitems of data of the type of *ptr from the named input stream. It returns the number of items actually read. . . . DIAGNOSTICS Fread and fwrite return 0 upon end of file or error. He also says, "A change can only be considered a bug fix if it brings into line behavior previously out of line with the documentation." Thank you, Jim, for justifying our change. It seems apparent from your argument that it was System III/V that did the wrong thing. Bill Shannon Sun Microsystems, Inc.