freebsd-nq/lib/libc/stdlib
Tor Egge df140f7277 When multiple threads call atexit at the same time, some operations must
be serialized.  A mutex is used to protect the critical regions.

sbrk() and brk() are not thread safe.  Replace use of sbrk() with
a call to malloc to avoid race when one thread calls atexit
while another thread calls malloc.

Reviewed by:	deischen
2002-03-05 17:34:37 +00:00
..
abort.3 Detail thread-safe and async-cancel-safe status. 2001-09-09 18:52:00 +00:00
abort.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
abs.3 o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
abs.c
alloca.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
atexit.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
atexit.c When multiple threads call atexit at the same time, some operations must 2002-03-05 17:34:37 +00:00
atexit.h
atof.3 mdoc(7) police: add missing markup bits for ``errno''. 2002-01-09 14:03:54 +00:00
atof.c Back out errno preserving 2001-12-30 03:34:46 +00:00
atoi.3 mdoc(7) police: add missing markup bits for ``errno''. 2002-01-09 14:03:54 +00:00
atoi.c Back out errno preserving 2001-12-30 03:34:46 +00:00
atol.3 mdoc(7) police: add missing markup bits for ``errno''. 2002-01-09 14:03:54 +00:00
atol.c Back out errno preserving 2001-12-30 03:34:46 +00:00
atoll.c Back out errno preserving 2001-12-30 03:34:46 +00:00
bsearch.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
bsearch.c
calloc.c
div.3 o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
div.c
exit.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
exit.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getenv.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
getenv.c
getopt.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
getopt.c If the string specifying the allowed options starts with a leading `:', 2001-08-16 03:27:03 +00:00
getsubopt.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
getsubopt.c
hcreate.3 mdoc(7) police: eliminate -ww warnings. 2001-07-09 15:54:36 +00:00
hcreate.c Add new, from scratch implementation of hsearch() et al that actually works. 2001-05-15 07:08:20 +00:00
heapsort.c
imaxabs.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
imaxabs.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
imaxdiv.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
imaxdiv.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
labs.3 o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
labs.c
ldiv.3 o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
ldiv.c
llabs.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
llabs.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
lldiv.3 mdoc(7) police: fixed typos and minor markup nits. 2001-11-21 16:19:50 +00:00
lldiv.c o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). 2001-11-15 02:05:03 +00:00
Makefile.inc Use the merged strtod.c everywhere. This has been tested on alpha and 2001-12-02 18:27:40 +00:00
malloc.3 mdoc(7) police: kill HSBs, add missing comma. 2001-12-12 14:41:53 +00:00
malloc.c Add ifdefs for sparc64. 2002-02-23 19:05:26 +00:00
memory.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
merge.c
putenv.c
qsort.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
qsort.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
radixsort.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
radixsort.c
rand.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
rand.c Add a long-overdue nail to the deprecated /dev/urandom interface 2001-10-30 21:26:50 +00:00
random.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
random.c Add a long-overdue nail to the deprecated /dev/urandom interface 2001-10-30 21:26:50 +00:00
reallocf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
realpath.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
realpath.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
setenv.c Only realloc() environ if we're sure that we know where it came from. 2000-09-20 03:05:37 +00:00
strfmon.3 mdoc(7) police: don't split author names in the AUTHORS section. 2001-10-01 13:50:03 +00:00
strfmon.c Add my e-mail to copyrights 2001-12-11 16:00:47 +00:00
strhash.c Tidy up $Log$ debris. 1999-09-05 17:42:45 +00:00
strtod.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
strtod.c Add ifdefs for sparc64. 2002-02-23 19:05:26 +00:00
strtoimax.c Return 'c' back to signed due to potential comparison problems 2001-12-07 16:33:47 +00:00
strtol.3 mdoc(7) police: fix markup, bump document date. 2001-12-12 14:53:51 +00:00
strtol.c Return 'c' back to signed due to potential comparison problems 2001-12-07 16:33:47 +00:00
strtoll.c Return 'c' back to signed due to potential comparison problems 2001-12-07 16:33:47 +00:00
strtoq.c Understand national (non-ASCII) digits now 2001-11-28 00:48:11 +00:00
strtoul.3 Minor typo fix: uquad_t -> u_quad_t. 2002-01-20 16:50:29 +00:00
strtoul.c Return 'c' back to signed due to potential comparison problems 2001-12-07 16:33:47 +00:00
strtoull.c Return 'c' back to signed due to potential comparison problems 2001-12-07 16:33:47 +00:00
strtoumax.c Return 'c' back to signed due to potential comparison problems 2001-12-07 16:33:47 +00:00
strtouq.c Understand national (non-ASCII) digits now 2001-11-28 00:48:11 +00:00
system.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
system.c Avoid getting stuck in system(3) when the internal call to wait4() 2001-10-03 11:01:39 +00:00
tdelete.c bring in binary search tree code. 2000-07-01 06:55:11 +00:00
tfind.c bring in binary search tree code. 2000-07-01 06:55:11 +00:00
tsearch.3 Move to using .In instead of .Fd #include <> for include mark-up. 2001-09-07 14:46:36 +00:00
tsearch.c bring in binary search tree code. 2000-07-01 06:55:11 +00:00
twalk.c bring in binary search tree code. 2000-07-01 06:55:11 +00:00