Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!usc!apple!dlyons
From: dlyons@Apple.COM (David Lyons)
Newsgroups: comp.sys.apple
Subject: Re: console FST EOF
Message-ID: <34053@apple.Apple.COM>
Date: 16 Aug 89 18:16:16 GMT
References: <10727@smoke.BRL.MIL> <3539@internal.Apple.COM> <10736@smoke.BRL.MIL> <3571@internal.Apple.COM> <10740@smoke.BRL.MIL>  <10751@smoke.BRL.MIL>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 21

In article <10751@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes:
>[...]
>There are only two ways this could be implemented:  either the APW C
>run-time support (stdio internals) maps a received 0 byte from the
>console keyboard into a simulated end-of-file, or the console driver
>(FST) itself returns "0 bytes read" when it detects some special
>condition, in this case typing of Ctrl-@. [...]

I don't know how end-of-file detection is implemented in APW C, ORCA/C,
APW, and ORCA, but note that the Character FST and Console Driver have
not always been around!  I'm sure APW C 1.0 and APW 1.0 aren't making
Console Driver calls.

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   AppleLink--Apple Edition: DAVE.LYONS      |   P.O. Box 875
   AppleLink--Personal Edition: Dave Lyons   |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.