cvs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cvs-dev] Re: new dirent module


From: Derek R. Price
Subject: Re: [Cvs-dev] Re: new dirent module
Date: Wed, 12 Jul 2006 10:25:10 -0400
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek R. Price wrote:

> Do you know if there is any good reason why I shouldn't rip out most of
> the contrived directory cache in dirent.c and just save hFile in the DIR
> *, then only call _find_first() from opendir(), _find_next() from
> readdir(), and _find_close() from closedir()?

Nevermind.  I just read the MSDN doc for _find* more thoroughly and it
looks like there are two good reasons:

1)  There don't appear to be any Windows equivalent of the POSIX
seekdir(), rewind(), and telldir() functions.

2)  Windows keeps the directory open until _find_close() is called, so,
under Windows file system semantics, the direcotry may not be written to
for the duration.

Sorry to bother you,

Derek
- --
Derek R. Price
CVS Solutions Architect
Get CVS support at Ximbiot <http://ximbiot.com>!
v: +1 248.835.1260
f: +1 248.835.1263
<mailto:address@hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEtQZGLD1OTBfyMaQRAmG2AJ9nT1Wl0Zp+78oePggui1Xg/Nxp2ACgn8Oo
1gLn2yYMRMlShhhtLg06Od4=
=L2zb
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]