home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: karish@mindcraft.com (Chuck Karish)
-
- In article <1992Mar20.225009.29556@uunet.uu.net>
- brian.haug@ncrcae.columbiasc.NCR.COM ("Brian R. Haug") writes:
- >I've recently encountered a problem with seekdir in that it does not work
- >when the directory is on a device incapable of seeking (like the /dev/fd
- >filesystem in SVR4) because seekdir calls lseek which fails.
-
- Then I guess you'll have to convert the directory into a seekable
- form, perhaps by copying it into memory.
-
- >POSIX seems to have done a good job covering all the bases, as it does not
- >allow chroot, which would prevent re-opening the file to implement rewinddir.
-
- If you cache the directory, all it takes is a pointer assignment.
- POSIX doesn't require that you maintain cache consistency on
- the directory image, either.
-
- Are you saying that SVID and XPG3 require that an open directory
- stream remain useful after a call to chroot() that would make
- the directory itself inaccessible?
-
- Chuck Karish karish@mindcraft.com
- Mindcraft, Inc. (415) 323-9000
-
-
- Volume-Number: Volume 27, Number 37
-
-