Age | Commit message (Collapse) | Author |
|
utent.c has a few problems with mutex locking when used in a binary that was linked with pthreads. The are a few deadlock conditions where functions may be called which lock the utmplock but never release it and where a function that hold the lock calls other functions which try to relock the same lock. For example, notice in the __getutent function the error condition does not unlock the semaphore. The problem is not visible when pthreads isn't used since the lock/unlock functions are NOOP functions.
|
|
uintptr_t
|
|
fails ... so fix that. add back in fstat() ofter we open() the directory as we need the blocksize further down in the code. unify the memory error handling to shrink the code there a little.
|
|
|
|
cutting codesize/race condition
|
|
|
|
|
|
to be weaks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is a useless attempt
|
|
|
|
|
|
use within uClibc, depends on fnmatch as well
|
|
|
|
see what libpthread will do ...
|
|
|
|
gone from libc. The remaining are left as exercise for others ;-)
|
|
|
|
|
|
|
|
|
|
|