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

  1. Submitted-by: mib@geech.gnu.ai.mit.edu (Michael I Bushnell)
  2.  
  3. In article <20ac9sINN3eb@rodan.UU.NET> casper@fwi.uva.nl (Casper H.S. Dik) writes:
  4. >No. NFS is not the culprit. You cannot detect this at open time.
  5. >When you read a directory, you'll open it with open and read it
  6. >with getdents(). When you open a file for reading, you'll use the
  7. >exact same open call. You cannot detect this error at open time.
  8.  
  9. Hmm.  I suppose that makes sense.  I think the optimal solution is
  10. simply to provide getdents, with a standard format, and say that read
  11. on a directory gets you some filesystem-dependent raw format.  There
  12. is no reason to have read return an error for directories at all.
  13.  
  14.  
  15. --
  16. +1 617 628 6197 (H)      |     Offer to God a sacrifice of thanksgiving
  17. +1 617 253 8568 (W)     -+-      and make good your vows to the Most High.
  18. 14 Paulina Street        |     Call upon me in the day of trouble;
  19. Somerville, MA 02144     |       I will deliver you, and you shall honor me.
  20.  
  21.  
  22. Volume-Number: Volume 31, Number 84
  23.  
  24.