From: -- (mlo@Bonnie.ICS.UCI.EDU)
Date: 01/04/93


From: mlo@Bonnie.ICS.UCI.EDU (--)
Subject: non-blocking read(): return vaules?
Date: 4 Jan 1993 07:06:00 GMT


Here's (roughly) something I read in "Advanced C Programming for
Displays" by Marc J. Rochkind:

On System V, a non-blocking "read()", when no data is ready, returns
zero. On BSD4 systems, "read()" returns -1 and sets errno to
EWOULDBLOCK.

On Linux (System V, right?), it seems to be returning -1 (like BSD),
but without setting the errno as BSD does.

Can someone tell me a little more about read() on Linux?

Thanks in advance.

- Mike