home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v1 / text0039.txt < prev    next >
Encoding:
Text File  |  1987-06-30  |  1.7 KB  |  44 lines

  1. ----------------------------------------------------------------------
  2.  
  3. Date: Sat, 20 Jul 85 16:41:57 PDT
  4. From: seismo!sun!guy (Guy Harris)
  5. To: ut-sally!std-unix
  6. Subject: Non-blocking I/O and EWOULDBLOCK vs. EAGAIN
  7.  
  8. The /usr/group standards committee has essentially adopted 4.2BSD-style
  9. non-blocking I/O, rather than System V-style non-blocking I/O.  The System V
  10. Interface Definition says that System V will be changed to match the
  11. /usr/group standard.
  12.  
  13. However,
  14.  
  15.     1) as the S5ID states, this may break existing code as it isn't
  16.        compatible with existing System V implementations.
  17.  
  18. and
  19.  
  20.     2) it's not compatible with 4.2BSD, either, because they return
  21.        EAGAIN if a non-blocking operation would have blocked had the
  22.        descriptor been in non-blocking mode, rather than EWOULDBLOCK.
  23.  
  24. Is there a good reason for constructing a new specification, incompatible
  25. with *all* existing systems, rather than adopting the existing 4.2BSD
  26. facility which provides the same functionality and merely uses a different
  27. error code?  "The committee didn't want to add a new error code" is an
  28. extremely bad reason, as they have already added new error codes for the
  29. benefit of file locking.  UNIX error codes are far too overloaded already;
  30. the problem should not be compounded.
  31.  
  32.     Guy Harris
  33.  
  34. ------------------------------
  35.  
  36. Discussions-Of: UNIX standards, particularly the IEEE P1003 draft standard.
  37. Submissions-To:    ut-sally!std-unix    or std-unix@ut-sally.ARPA
  38. Comments-To: ut-sally!std-unix-request    or std-unix-request@ut-sally.ARPA
  39. UUCP-Routes: {ihnp4,seismo,harvard,gatech}!ut-sally!std-unix
  40. Archives-In: ~ftp/pub/mod.std.unix on ut-sally.ARPA (soon sally.UTEXAS.EDU)
  41.  
  42. Volume-Number: Volume 1, Number 40
  43.  
  44.