home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.31 / text0081.txt < prev    next >
Encoding:
Text File  |  1993-07-15  |  701 b   |  19 lines

  1. Submitted-by: casper@fwi.uva.nl (Casper H.S. Dik)
  2.  
  3. mib@churchy.gnu.ai.mit.edu (Michael I Bushnell) writes:
  4. >The real lose here (surprise, surprise) is that NFS is the culprit
  5. >here.  The correct place for the EISDIR to be returned is to the open
  6. >call, not to the read.  Errors should not be returned from read and
  7. >write if they can be detected at open time and are thoroughly
  8. >non-transient.
  9.  
  10. No. NFS is not the culprit. You cannot detect this at open time.
  11. When you read a directory, you'll open it with open and read it
  12. with getdents(). When you open a file for reading, you'll use the
  13. exact same open call. You cannot detect this error at open time.
  14.  
  15. Casper
  16.  
  17. Volume-Number: Volume 31, Number 83
  18.  
  19.