Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ncoast.UUCP Path: utzoo!linus!decvax!cwruecmp!atvax!ncoast!bsa From: bsa@ncoast.UUCP (Brandon Allbery) Newsgroups: net.unix-wizards Subject: Re: 4.2bsd eof flag in stdio Message-ID: <439@ncoast.UUCP> Date: Thu, 22-Nov-84 14:04:53 EST Article-I.D.: ncoast.439 Posted: Thu Nov 22 14:04:53 1984 Date-Received: Sat, 24-Nov-84 05:55:12 EST References: <1697@ucf-cs.UUCP> <1796@sun.uucp> <5867@brl-tgr.ARPA> <1246@utah-gr.UUCP> Reply-To: bsa@ncoast.UUCP (Brandon Allbery) Organization: `Stamp Out MicroSoft!' on the North Coast Lines: 25 Summary: TTY(4) XENIX Programmer's Manual TTY(4) . . . EOT (Control-D) may be used to generate an end of file from a terminal. When an EOT is received, all the charac- ters waiting to be read are immediately passed to the program, without waiting for a new-line, and the EOT is discarded. Thus if there are no characters waiting, which is to say the EOT occurred at the beginning of a line, zero characters will be passed back, and this is the standard end-of-file indication. \this is in the system manual; \i'd suggest both you and \berkeley look it up (in a v7 manual if necessary). fread() was \n\o\t designed for terminal \i/\o. --bsa -- Brandon Allbery @ North Coast Xenix | the.world!ucbvax!decvax!cwruecmp! 6504 Chestnut Road, Independence, Ohio | {atvax!}ncoast!{tdi1!}bsa (216) 524-1416 \ 44131 | E1439@CSUOHIO.BITNET (friend's acct.) ---------------------------------------+--------------------------------------- Forgive; we just had a system crash & lost a month's worth of work and patches.