freebsd-dev/lib/libc
John Polstra d3980376e8 Add a new function dllockinit() for registering thread locking
functions to be used by the dynamic linker.  This can be called by
threads packages at start-up time.  I will add the call to libc_r
soon.

Also add a default locking method that is used up until dllockinit()
is called.  The default method works by blocking SIGVTALRM, SIGPROF,
and SIGALRM in critical sections.  It is based on the observation
that most user-space threads packages implement thread preemption
with one of these signals (usually SIGVTALRM).

The dynamic linker has never been reentrant, but it became less
reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c".
Starting with that revision, multiple threads each doing lazy
binding could interfere with each other.  The usual symptom was
that a symbol was falsely reported as undefined at start-up time.
It was rare but not unseen.  This commit fixes it.
1999-12-27 04:44:04 +00:00
..
alpha In longjmp, call sigreturn instead of osigreturn. The latter isn't 1999-10-14 01:16:51 +00:00
amd64 Creating weak symbols doesn't work correctly when building an aout libc. 1999-12-24 00:03:00 +00:00
compat-43 Fix sigvec(). When the sigset_t changes came in, it was altered 1999-10-09 00:25:29 +00:00
db $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
gen Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
gmon $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
i386 Creating weak symbols doesn't work correctly when building an aout libc. 1999-12-24 00:03:00 +00:00
include $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
locale Back up following macros by functions: ishexnumber, isideogram, isnumber, 1999-12-17 15:12:21 +00:00
mips Bring in initial libc support for mips. These files were taken from 1999-03-03 07:06:17 +00:00
mipseb Fix all the mipseb Makefiles. They were broken when I checked them in 1999-04-22 07:16:11 +00:00
mipsel Fix all the mipseb Makefiles. They were broken when I checked them in 1999-04-22 07:16:11 +00:00
net Fixed missing includes in synopsis. 1999-12-23 16:38:51 +00:00
nls Add gencat(1) to SEE ALSO section. 1999-09-22 22:44:42 +00:00
quad $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
regex $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
rpc Commented out 1999-12-14 16:56:46 +00:00
stdio While comparing this with OpenBSD (ie: trying to figure out what mkstemps() 1999-12-11 14:48:24 +00:00
stdlib Fixed missing installation of a link to rand_r.3. 1999-12-23 16:00:50 +00:00
stdtime Remove discussion of %C in the BUGS section. The limitations on valid 1999-12-09 07:58:28 +00:00
string Remove x-ref to itself. 1999-12-14 11:34:47 +00:00
sys Fixed wrong #include in synopsis. 1999-12-23 16:48:57 +00:00
xdr $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
yp Fix buffer overflows. 1999-12-05 21:02:41 +00:00
Makefile sigset_t change (part 5 of 5) 1999-09-29 15:18:46 +00:00
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00