pty bugs & features
Leslie Mikesell
les at chinet.chi.il.us
Thu Aug 30 01:33:06 AEST 1990
In article <13650 at smoke.BRL.MIL> gwyn at smoke.BRL.MIL (Doug Gwyn) writes:
>In article <6038 at muffin.cme.nist.gov> libes at cme.nist.gov (Don Libes) writes:
>>Why do pty's return EIO instead of 0 upon EOF?
>If they do this, it is clearly wrong and would most likely be due to
>UNIX development now being done, or at least directed, by people who
>don't understand UNIX. read() should not return -1 upon encountering
>normal EOF on ANY object.
Is this meant to imply that the developers of STREAMS don't understand
unix? A read on a STREAMS file is documented to return -1 when O_NDELAY
is set and there is no data available (which has unfortunately been
propagated into the tty emulation of at least some network implimentations).
Apparently there is some reason to want to know about zero length
messages.
Les Mikesell
les at chinet.chi.il.us
More information about the Comp.unix.wizards
mailing list