🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.mach
Article #986

Re: seekdir and telldir in Mach 2.5

#986
From: Mary Thompson
Date: Mon, 06 May 1991 18:31
22 lines
1730 bytes
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. 

The CMU conditionals in libc force you to use getdirentires or readdir. It
may be that as long as you are dealing with only ufs directories, you can
undefine CMU for those routines and things will work. It may be that lseek
will refuse to work for a directory file though, so you might have to change
that as well.

CMU has modified versions of things like tar etc. but the original Mach 2.5
releases made no attempt to provide a complete set of sources. Such a complete
set is included with the Mt Xinu 2.6 MSD releases and has more recently 
been provided with the Mach 2.5 releases for the i386 machines from both
Mt Xinu and CMU.  (The CMU i386 release is only available via internet, we
cannot give it out on tape.)


Mary Thompson, CMU
Technical Details
Message-ID: <1991May6.183122.6252@cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!o.gp.cs.cmu.edu!MRT.MACH.CS.CMU.EDU!mrt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!o.gp.cs.cmu.edu!MRT.MACH.CS.CMU.EDU!mrt
From: mrt@MRT.MACH.CS.CMU.EDU (Mary Thompson)
Newsgroups: comp.os.mach
Subject: Re: seekdir and telldir in Mach 2.5
Message-ID: <1991May6.183122.6252@cs.cmu.edu>
Date: 6 May 91 18:31:22 GMT
Sender: netnews@cs.cmu.edu (USENET News Group Software)
Reply-To: mrt@MRT.MACH.CS.CMU.EDU (Mary Thompson)
Organization: Carnegie Mellon University
Lines: 22