home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v1 / text0034.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.2 KB

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