cvs-dev
[Top][All Lists]
Advanced

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

[Cvs-dev] Re: new dirent module


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

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

Derek R. Price wrote:
> Okay, I've attached the proposed lib/dirent.c, lib/dirent.h, and
> modules/dirent.  I wasn't sure what to do about the Makefile.am chunk of

Hey Jim,

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()?

It seems to me that this would save a lot of overhead, so I'm not quite
sure why it wasn't done this way in the first place.  Are there race
conditions involved if the directory changes while it is being read by
the _find* functions?

Thanks,

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

iD8DBQFEtQQULD1OTBfyMaQRAsTEAKDsEz//6XIm08QE4sqOHJ1gIan2DgCeMXI8
M6L2+dP8L7uOoNQ/2lIys/c=
=8+jG
-----END PGP SIGNATURE-----





reply via email to

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