summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/Makefile.inc
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-12-27 04:44:04 +0000
committerjdp <jdp@FreeBSD.org>1999-12-27 04:44:04 +0000
commit52ec4df9e85a6ae74cd9f5cf905ae35c0c1a6670 (patch)
treee4e05bba4c3de19150902d099920062a8bdb21ab /lib/libc/gen/Makefile.inc
parentefacb21bbc4c5e4ae5ef661233ee6249ee8a0e7f (diff)
downloadFreeBSD-src-52ec4df9e85a6ae74cd9f5cf905ae35c0c1a6670.zip
FreeBSD-src-52ec4df9e85a6ae74cd9f5cf905ae35c0c1a6670.tar.gz
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.
Diffstat (limited to 'lib/libc/gen/Makefile.inc')
-rw-r--r--lib/libc/gen/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 9a23677..a193cc2 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -34,7 +34,7 @@ SRCS+= _rand48.c _spinlock_stub.c alarm.c arc4random.c assert.c \
.if ${LIB} == "c"
MAN3+= alarm.3 arc4random.3 clock.3 \
confstr.3 crypt.3 ctermid.3 daemon.3 \
- devname.3 directory.3 dladdr.3 dlopen.3 \
+ devname.3 directory.3 dladdr.3 dllockinit.3 dlopen.3 \
err.3 exec.3 fnmatch.3 frexp.3 ftok.3 fts.3 \
getbootfile.3 getbsize.3 getcap.3 getcwd.3 \
getdiskbyname.3 getdomainname.3 getfsent.3 \
OpenPOWER on IntegriCloud