| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
case where an /etc/nsswitch.conf file was present, but could not
be opened (e.g. due to permissions). Previously, the open failure
condition was suppressed, and the built-in defaults were used. In
revision 1.11, however, propagated the open failure causing all
nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs
including getpwnam and gethostbyname unconditionally failed.
This commit restores the previous behavior.
Pointy hat: nectar (+1 for obstinance; ache had to use clue bat)
Reported by: ache
|
|
|
|
|
|
|
|
|
|
|
| |
solved by a simple 'make world'. The signalcontext function was going
to the trouble of generating an even 16 byte alignment, but in fact it
needed to be odd aligned to simulate the 8-byte return address having
been pushed by the caller. This fixes yet another group of crashes in
applications using libpthread. And yet again, it was my fault all along.
While here, rename the duplicate internal ctx_wrapper() functions to
makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
library, it may pull in that thread library at run time. If the
process started out single-threaded, this could cause attempts to
release locks that do not exist. Guard against this possibility by
checking __isthreaded before invoking thread primitives.
A similar problem remains if the process is linked against one thread
library, but the NSS module is linked against another. This can only
be avoided by careful design of the NSS module.
Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine)
|
|
|
|
| |
isspecial(3) and wctype(3).
|
|
|
|
| |
and isspecial().
|
| |
|
|
|
|
| |
differ (at least in theory) from isdigit() and isxdigit().
|
| |
|
| |
|
|
|
|
| |
Reviewed by: ru
|
| |
|
|
|
|
|
|
| |
pthreads.
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
|
| |
|
| |
|
|
|
|
| |
users from assuming that fpos_t is an integral type.
|
|
|
|
|
| |
Submitted by: ru
MFC after: 1 week
|
|
|
|
| |
related functions - __sgetc() and __sputc() will set it when necessary.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
ferror(), fileno() and clearerr(), using the value of __isthreaded to
decide between the fast inline single-threaded code and the more
general function equivalent. This gives most of the performance
benefits of the old unsafe macros while preserving thread safety.
|
| |
|
| |
|
|
|
|
| |
Noticed by: ru
|
| |
|
|
|
|
|
|
|
| |
may in fact very well be a struct sockaddr_in6. Just use plain struct
sockaddr.
This brings us yet another step closer to a clean -O2 build.
|
|
|
|
| |
vslock() failure).
|
|
|
|
|
| |
vectors, instead of requiring the caller to keep track of element size
and count and pass them in by reference.
|
| |
|
|
|
|
|
| |
setting it redundantly when called from ungetwc(), vfscanf() etc.,
which already set the orientation.
|
| |
|
|
|
|
| |
detour through putc().
|
|
|
|
| |
detour through getc().
|
|
|
|
| |
__srefill() to do it.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
structure and call stdio functions. In 5.X this was broken when FILE
locking was introduced into libc.
This change makes most (relevant) stdio functions work again when the
_extra file in FILE isn't initialised (and can't be without a libc
function to do it since the __sFILEX structure is private to libc).
|
|
|
|
|
|
| |
done before the first call, even if this is a malloc(0) call.
PR: 62859
|
|
|
|
| |
cleanup, add more sections, better explanation, declaration
|
|
|
|
|
|
|
|
| |
cleanups, handling 'ls -l-', handling '--*'
Note this is in the same time back out of our v1.3
"Don't print an error message if the bad option is '?'"
because it directly violates POSIX.
|
| |
|
|
|
|
| |
single '-' in command line and '-' (non-first) in options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).
There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".
Tested on: i386 sparc64
|
|
|
|
| |
MFC after: 2 weeks
|
| |
|
| |
|
|
|
|
|
|
|
| |
in order to get SUSv2 conformant behavior in higher level calls like
fputs() and puts().
Reviewed by: bde
|
|
|
|
| |
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
|
|
|
|
|
|
|
| |
define for it.
Don't catch POSIXLY_CORRECT env. into static variable, it can be changed
on the fly by program.
Use P1003.2 standartized illoptchar[]
|
| |
|