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