Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/seekdir.c
RevisionDateAuthorComments
 1.15  06-Mar-2013  yamt wrap a long line
 1.14  17-May-2006  christos branches: 1.14.44; 1.14.50;
PR/24324: Arne H Juul: Re-implement seekdir/telldir using a pointer of
locations per directory instead of a global hash table to avoid memory
leak issues, and incorrect results.
 1.13  24-Jan-2006  christos rename __func to _func_unlocked, and add their prototypes in extern.h
instead of exposing them in dirent.h. More locking consistency fixes.
 1.12  24-Jan-2006  christos PR/32609: Tanaka Akira: seekdir blocks if pthread is linked
Do locking consistently to avoid recursive locks (like the bug reported in
this pr), and to avoid leaking locks on errors.
 1.11  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.10  28-May-2003  christos add mutex locking for directories and readdir_r(3). Influenced by FreeBSD.
 1.9  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.8  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.6  21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.5  13-Jul-1997  christos Fix RCSID's
 1.4  25-Feb-1995  cgd branches: 1.4.4;
clean up Id's on files previously imported...
 1.3  27-Jul-1994  jtc branches: 1.3.2; 1.3.4;
Add RCS Id's
 1.2  27-Jul-1994  jtc Return NULL and set errno to ENOTDIR if opening a non-directory (POSIX.1,
Section 5.1.2.4). Rename _seekdir to __seekdir, as former is in the
user's namespace.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  27-Jul-1994  jtc opendir() & friends from 4.4lite.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.4.2  02-May-1995  jtc #include "namespace.h"
 1.3.4.1  26-Apr-1995  jtc #include "namespace.h"
Added __weak_reference defns.
 1.3.2.2  27-Jul-1994  jtc Add RCS Id's
 1.3.2.1  27-Jul-1994  jtc file seekdir.c was added on branch netbsd-1-0 on 1994-07-27 14:39:52 +0000
 1.4.4.1  16-Sep-1996  jtc snapshot namespace cleanup
 1.14.50.1  23-Jun-2013  tls resync from head
 1.14.44.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed