cvs commit: src/include dirent.h src/lib/libc/gen rewinddir.c telldir.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Apr 22 14:33:15 PDT 2008
dillon 2008/04/22 14:29:42 PDT
DragonFly src repository
Modified files:
include dirent.h
lib/libc/gen rewinddir.c telldir.c
Log:
* Remove the SINGLEUSE feature for telldir(), it does not conform to the
Open Group specification.
* Add a mutex around the ddloc hash table. Note that NetBSD implemented
a per-dirp list but telldir/seekdir performance just isn't an issue
for these functions so stick with the global hash table.
* Reuse the ddloc for a previous seekdir() when calling telldir() just
after a seekdir(), instead of allocating a new one.
* rewinddir() now cleans up any ddloc's for the dirp.
Reported-by: Gary Stanley <sinknull at crater.dragonflybsd.org>
Revision Changes Path
1.8 +2 -1 src/include/dirent.h
1.5 +1 -0 src/lib/libc/gen/rewinddir.c
1.6 +46 -24 src/lib/libc/gen/telldir.c
http://www.dragonflybsd.org/cvsweb/src/include/dirent.h.diff?r1=1.7&r2=1.8&f=u
http://www.dragonflybsd.org/cvsweb/src/lib/libc/gen/rewinddir.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/lib/libc/gen/telldir.c.diff?r1=1.5&r2=1.6&f=u
More information about the Commits
mailing list