d3980376e8
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. |
||
---|---|---|
.. | ||
arpa | ||
protocols | ||
rpc | ||
rpcsvc | ||
_ctype.h | ||
a.out.h | ||
ar.h | ||
assert.h | ||
bitstring.h | ||
ctype.h | ||
db.h | ||
dirent.h | ||
disktab.h | ||
dlfcn.h | ||
elf-hints.h | ||
elf.h | ||
err.h | ||
fnmatch.h | ||
fstab.h | ||
fts.h | ||
glob.h | ||
grp.h | ||
histedit.h | ||
ieeefp.h | ||
iso646.h | ||
limits.h | ||
link.h | ||
locale.h | ||
Makefile | ||
malloc.h | ||
math.h | ||
memory.h | ||
mpool.h | ||
ndbm.h | ||
netdb.h | ||
nl_types.h | ||
nlist.h | ||
objformat.h | ||
paths.h | ||
pthread_np.h | ||
pthread.h | ||
pwd.h | ||
ranlib.h | ||
regex.h | ||
regexp.h | ||
resolv.h | ||
rune.h | ||
runetype.h | ||
setjmp.h | ||
sgtty.h | ||
signal.h | ||
stab.h | ||
stddef.h | ||
stdio.h | ||
stdlib.h | ||
strhash.h | ||
string.h | ||
stringlist.h | ||
strings.h | ||
struct.h | ||
sysexits.h | ||
tar.h | ||
time.h | ||
timers.h | ||
ttyent.h | ||
unistd.h | ||
utime.h | ||
utmp.h | ||
vis.h |