| Age | Commit message (Collapse) | Author |
|
definitions along the way. Fixed gcc 4.1 build (thank you vax)
|
|
- update comments
- whitespace
|
|
a block has been unlinked, seekdir() may overshoot by one entry.
Thus, _readdir_unlinked() must not skip deleted entries when being
called from seekdir().
Christos agreed.
|
|
locations per directory instead of a global hash table to avoid memory
leak issues, and incorrect results.
|
|
instead of exposing them in dirent.h. More locking consistency fixes.
|
|
Do locking consistently to avoid recursive locks (like the bug reported in
this pr), and to avoid leaking locks on errors.
|
|
|
|
|
|
Patches provided by Joel Baker in PR 22280, verified by myself.
|
|
|
|
|
|
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
|
|
_DIAGASSERT() is still retained.
|
|
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
|
|
|
|
|
|
|
|
warnings on.
|
|
without removing double entries). This makes sure that we get a
consistent snapshot of the directory, and protects against any
'bad cookie' errors.
|
|
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>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|