stdio EOF

Doug Gwyn gwyn at smoke.ARPA
Thu Sep 15 03:22:26 AEST 1988


In article <68214 at sun.uucp> shannon%datsun at Sun.COM (Bill Shannon) writes:
[re. sticky EOF]
>What you didn't notice is that it fixed many programs that were broken.

It's certainly true that there were several programs found on UNIX systems
that "read the EOF" more than once, and thus would fail miserably on files
other than static fixed-length files, most notably when reading from ttys.
Because "EOF" is not an official UNIX notion (really it is "0 bytes read")
and because this is often a transient condition, I much prefer to fix the
applications that made the bogus assumption and leave the library alone.



More information about the Comp.unix.wizards mailing list