freebsd-skq/lib/libc
green 63ed3e92a9 Fix the problems I (and others, undoubtedly) have been having for a
while with threaded software in -CURRENT acting very "weird".  It has
seemed, for example, in Mozilla that threads attempting to do host
lookups have been locking up.  That's exactly the case.

There was a race condition in the implementation of the initialization
of the mutex used to protect FILE operations, first of all: multiple
instances of FLOCKFILE() in libc could occur on the same FILE at
the same time and cause strange behavior by overwriting eachothers'
creation of the mutex and the rest of the file lock.

Secondly, it's not appropriate to test the "validity" of the file
descriptor referenced by the FILE; if the code is calling FLOCKFILE()
or FUNLOCKFILE(), it wants the FILE to be locked or unlocked, not
to be locked or unlocked on the condition that _file is >= 0.  This
also could quite easily cause leaks by failing to perform the lock or
unlock operation when it actually is needed.

Mozilla now works again on -CURRENT when linked to libc_r.so.5 and
libc.so.5.
2001-02-23 04:59:12 +00:00
..
alpha Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
amd64 Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
compat-43 Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
db mdoc(7) cleanup. 2001-02-12 15:16:24 +00:00
gen Preceed/preceeding are not english words. Use precede or preceding. 2001-02-18 10:25:42 +00:00
gmon Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
i386 Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
ia64 Clean up syscall generation in libc by removing HIDDEN_SYSCALLS 2001-01-29 03:23:46 +00:00
include libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
locale cleanup commentaries 2001-02-19 19:09:00 +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 Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Some 2001-02-19 13:13:51 +00:00
nls Use .Rv macro instead of hardcoded message 2001-02-12 08:42:56 +00:00
posix1e Fix typo: seperate -> separate. 2001-02-06 10:39:38 +00:00
quad $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
regex mdoc(7) police: fixed the weird construct. 2001-02-09 09:08:53 +00:00
rpc mdoc(7) police: C types should be declared with either .Ft or .Vt. 2001-02-08 10:22:35 +00:00
stdio Fix the problems I (and others, undoubtedly) have been having for a 2001-02-23 04:59:12 +00:00
stdlib Remove freelists managed by Balloc/Bfree. 2001-02-15 22:12:50 +00:00
stdtime Back out snprintf -> sprintf change until I have time to look at it. 2001-02-18 04:07:50 +00:00
string mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
sys List the SA_RESTART flag rather than burying it in another paragraph. 2001-02-14 21:46:07 +00:00
xdr mdoc(7) police: print #ifdef/#endif literally, 2001-02-08 10:40:42 +00:00
yp Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
Makefile Fix the current libc breakage in current: 2001-02-16 06:11:22 +00:00
Makefile.inc Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00