* Remove the SINGLEUSE feature for telldir(), it does not conform to the
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 22 Apr 2008 21:29:42 +0000 (21:29 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 22 Apr 2008 21:29:42 +0000 (21:29 +0000)
commit9d7ae7ac19e799e9ce241bc4297f22c919a47543
treebf1df82b1192f43c583bde988f702afbdc748c32
parentd8fd8bea9d6f2ed1bcc74303e0a8cd615364aea5
* 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@crater.dragonflybsd.org>
include/dirent.h
lib/libc/gen/rewinddir.c
lib/libc/gen/telldir.c