Using opendir() with a filePro file name

Fairlight fairlite at fairlite.com
Mon Apr 10 15:17:10 PDT 2006


Simon--er, no...it was Kenneth Brody--said:
> Quoting Jay R. Ashworth (Mon, 10 Apr 2006 10:01:30 -0400):
> 
> > On Wed, Apr 05, 2006 at 11:20:36PM -0400, Fairlight wrote:
> > > > where lc is a counter that begins at "3", so that I skip "." and
> > > > "..".
> > >
> > > What makes you think . and .. are necessarily going to be entries 1
> > > and 2?
> >
> > On a *nix system with standard semantics, if you walk the directory in
> > unsorted order, they are in fact guaranteed to be entries 1 and 2:
> > they're populated when the directory is created, atomically.
> >
> > I suspect SUS or SVID specifies this.
> 
> On the filesystems use by Windows, the root directory of each drive
> does not have such entries.

Confirmed.  I tried c:/temp and c:/winnt at first and thought it was being
reasonable.  Then I read this and tested just c:/ and it is indeed
as you say.

mark->


More information about the Filepro-list mailing list