home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22616 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  734 b 

  1. Path: sparky!uunet!usc!news.service.uci.edu!ucivax!gateway
  2. From: mlo@Bonnie.ICS.UCI.EDU (--)
  3. Subject: non-blocking read(): return vaules?
  4. Message-ID: <9301032305.aa08055@Bonnie.ics.uci.edu>
  5. Newsgroups: comp.os.linux
  6. Lines: 20
  7. Date: 4 Jan 93 07:06:00 GMT
  8.  
  9.  
  10. Here's (roughly) something I read in "Advanced C Programming for
  11. Displays" by Marc J. Rochkind:
  12.  
  13. On System V, a non-blocking "read()", when no data is ready, returns
  14. zero.  On BSD4 systems, "read()" returns -1 and sets errno to
  15. EWOULDBLOCK.
  16.  
  17. On Linux (System V, right?), it seems to be returning -1 (like BSD),
  18. but without setting the errno as BSD does.
  19.  
  20. Can someone tell me a little more about read() on Linux?
  21.  
  22. Thanks in advance.
  23.  
  24. - Mike
  25.  
  26. --
  27. Michael Lo
  28. mlo@bonnie.ics.uci.edu
  29.