home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news.service.uci.edu!ucivax!gateway
- From: mlo@Bonnie.ICS.UCI.EDU (--)
- Subject: non-blocking read(): return vaules?
- Message-ID: <9301032305.aa08055@Bonnie.ics.uci.edu>
- Newsgroups: comp.os.linux
- Lines: 20
- Date: 4 Jan 93 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
-
- --
- Michael Lo
- mlo@bonnie.ics.uci.edu
-