DragonFly commits List (threaded) for 2008-04
DragonFly BSD
DragonFly commits List (threaded) for 2008-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/include dirent.h src/lib/libc/gen rewinddir.c telldir.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Apr 2008 14:29:42 -0700 (PDT)

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@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



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