freebsd-dev/include
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
..
arpa $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
protocols Zap $Revision$ 1999-09-05 17:43:31 +00:00
rpc $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
rpcsvc $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
_ctype.h Back up following macros by functions: ishexnumber, isideogram, isnumber, 1999-12-17 15:12:21 +00:00
a.out.h
ar.h
assert.h
bitstring.h
ctype.h Back up following macros by functions: ishexnumber, isideogram, isnumber, 1999-12-17 15:12:21 +00:00
db.h
dirent.h Fixed missing declaration of getdents(2). 1999-12-23 15:52:13 +00:00
disktab.h
dlfcn.h Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
elf-hints.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
elf.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
err.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
fnmatch.h Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME 1999-11-21 17:32:45 +00:00
fstab.h
fts.h
glob.h Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header. 1998-02-25 02:15:59 +00:00
grp.h
histedit.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
ieeefp.h Allow fpsetmask(3) and friends to be used from a C++ program on the Alpha. 1999-06-22 17:08:25 +00:00
iso646.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
limits.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
link.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
locale.h Basic support for LC_MESSAGES 1998-04-29 22:39:56 +00:00
Makefile Revert previous commit. 1999-12-09 09:35:36 +00:00
malloc.h
math.h
memory.h
mpool.h
ndbm.h Add missing declarations. 1999-06-21 17:07:20 +00:00
netdb.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
nl_types.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
nlist.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
objformat.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
paths.h Move nologin from /etc to /var/run. This means one less file that has 1999-01-11 09:07:42 +00:00
pthread_np.h Cleanups to the pthread header files. 1999-07-31 08:36:07 +00:00
pthread.h Fix some minor POSIX/SUSv2 compliance nits. 1999-12-18 01:00:42 +00:00
pwd.h Use the correct type for uid and gid in struct passwd. Document it. 1999-01-18 02:14:20 +00:00
ranlib.h
regex.h
regexp.h
resolv.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
rune.h
runetype.h
setjmp.h Suggested by: bde 1998-01-20 09:09:24 +00:00
sgtty.h
signal.h Remove the inline versions of sigaddset, sigdelset, sigemptyset, 1999-10-02 19:33:23 +00:00
stab.h
stddef.h
stdio.h Fixed missing declaration of ctermid_r(3). 1999-12-23 16:33:12 +00:00
stdlib.h Fixed missing declaration of rand_r(3). 1999-12-23 15:58:20 +00:00
strhash.h $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
string.h Add prototypes for strl* functions 1999-08-16 06:53:13 +00:00
stringlist.h
strings.h
struct.h
sysexits.h
tar.h
time.h Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc. 1999-01-04 20:45:20 +00:00
timers.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
ttyent.h MF22: prototype fix. 1998-07-16 00:10:14 +00:00
unistd.h Fixed missing declaration of getlogin_r(3). 1999-12-23 16:06:12 +00:00
utime.h
utmp.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
vis.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00