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 Woops, include machine/exec.h, too. 1994-09-24 21:49:20 +00:00
ar.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
assert.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
bitstring.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
ctype.h Back up following macros by functions: ishexnumber, isideogram, isnumber, 1999-12-17 15:12:21 +00:00
db.h Fix conflicts and merge into mainline (this may get cvs admined out and redone properly by Peter later) 1996-02-27 19:42:44 +00:00
dirent.h Fixed missing declaration of getdents(2). 1999-12-23 15:52:13 +00:00
disktab.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
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 Change to comment for fs_passno to reflect that it applies 1997-01-28 06:11:45 +00:00
fts.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
glob.h Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header. 1998-02-25 02:15:59 +00:00
grp.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
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 This file is deprecated not "obsoleted". 1997-04-13 11:33:17 +00:00
math.h Don't use __dead or __pure in user code. They were obfuscations 1996-09-14 03:00:32 +00:00
memory.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
mpool.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
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 BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
regex.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
regexp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
resolv.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
rune.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
runetype.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
setjmp.h Suggested by: bde 1998-01-20 09:09:24 +00:00
sgtty.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
signal.h Remove the inline versions of sigaddset, sigdelset, sigemptyset, 1999-10-02 19:33:23 +00:00
stab.h Made them idempotent. 1994-08-21 04:03:58 +00:00
stddef.h Fixed longstanding namespace convolution involving rune_t vs wchar_t. 1996-05-01 00:40:10 +00:00
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 Add stringlist functions from NetBSD. (required for the new ftp(1) 1997-06-25 08:04:52 +00:00
strings.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
struct.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
sysexits.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
tar.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
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 Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
utmp.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
vis.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00