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

  1. Submitted-by: karish@mindcraft.com (Chuck Karish)
  2.  
  3. In article <1992Mar20.225009.29556@uunet.uu.net>
  4. brian.haug@ncrcae.columbiasc.NCR.COM ("Brian R. Haug") writes:
  5. >I've recently encountered a problem with seekdir in that it does not work
  6. >when the directory is on a device incapable of seeking (like the /dev/fd
  7. >filesystem in SVR4) because seekdir calls lseek which fails.
  8.  
  9. Then I guess you'll have to convert the directory into a seekable
  10. form, perhaps by copying it into memory.
  11.  
  12. >POSIX seems to have done a good job covering all the bases, as it does not
  13. >allow chroot, which would prevent re-opening the file to implement rewinddir.
  14.  
  15. If you cache the directory, all it takes is a pointer assignment.
  16. POSIX doesn't require that you maintain cache consistency on
  17. the directory image, either.
  18.  
  19. Are you saying that SVID and XPG3 require that an open directory
  20. stream remain useful after a call to chroot() that would make
  21. the directory itself inaccessible?
  22.  
  23.     Chuck Karish        karish@mindcraft.com
  24.     Mindcraft, Inc.        (415) 323-9000
  25.  
  26.  
  27. Volume-Number: Volume 27, Number 37
  28.  
  29.