home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0045.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.4 KB  |  27 lines

  1. Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
  2.  
  3. In article <1992Mar25.220739.18347@uunet.uu.net> haug@grok20.columbiasc.NCR.COM ("Brian R. Haug") writes:
  4. >A co-worker suggested that perhaps the real problem is that rewinddir and
  5. >seekdir are of type void and should have some other type so that they may
  6. >return an error condition (like the one I'm having to deal with).
  7.  
  8. I agree that it was unfortunate, but it wouldn't solve the REAL problem
  9. (from the point of view of the application program), which is that the
  10. rewinddir() fails under perfectly ordinary usage.  As I recall the P1003
  11. discussions, the opinion was generally held that if opendir() succeeded,
  12. then a subsequent rewinddir() couldn't possibly fail (except if the
  13. filesystem went off line or something of the sort, which we weren't
  14. particularly concerned about at the time).  seekdir(), on the other hand,
  15. was expected to malfunction using any reasonable user-mode implementation,
  16. on certain systems that dynamically compact directories.  (Of course they
  17. would also affect readdir(), but only in the sense of causing some entries
  18. to be skipped.  Really, the file-system part of the operating system should
  19. provide more reliable directory access facilities than UNIX typically does.)
  20.  
  21. My honest suggestion is to get the /dev/fd filesystem maintainer to support
  22. seeking to BOF at least, if not providing seek in its full generality.
  23.  
  24.  
  25. Volume-Number: Volume 27, Number 45
  26.  
  27.