Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!mintaka.lcs.mit.edu!mib From: mib@geech.gnu.ai.mit.edu (Michael I Bushnell) Newsgroups: comp.os.mach Subject: Re: seekdir and telldir in Mach 2.5 Message-ID: Date: 6 May 91 22:05:35 GMT References: <1991May6.183122.6252@cs.cmu.edu> Sender: news@mintaka.lcs.mit.edu Organization: Free Software Foundation, Cambridge, MA Lines: 14 In-Reply-To: mrt@MRT.MACH.CS.CMU.EDU's message of 6 May 91 18:31:22 GMT In article <1991May6.183122.6252@cs.cmu.edu> mrt@MRT.MACH.CS.CMU.EDU (Mary Thompson) writes: I have a somewhat fuzzy idea of what happened here. Reading a directory up to some offet, remembering the offset, closing the directory, re-opening it and starting off at the remembed offset does not work for AFS directories. It may also not work for NFS directories although I am not sure of that. The system call that does work is is getdirentries, or you can read and cache the entire directory just once. It isn't guaranteed to work on U*x directories either. Directory blocks could be compressed, messing up the pointer. -mib