freebsd-skq/lib/libc/stdlib
John Birrell 1a3a296d21 Fix mutex initialization.
Malloc cannot use pthread_mutex_init() to initialize a mutex because
the mutex initialization process does a malloc!

libc_r internals skip the malloc and assign an initializer to a static
structure and point the opaque type (pthread_mutex_t in this case) to
that structure. This is done on the assumption that the mutex will never
be destroyed. This style of initialization is only valid inside libc_r
because the structure that is assigned is opaque to the user.

This fix allows a simple program to get to main() again. 8-)
1997-06-04 12:55:49 +00:00
..
abort.3 Note that streams are now flushed on abort. 1996-10-26 18:14:44 +00:00
abort.c POSIX requires stdio buffers be flushed on abort. 1996-10-26 01:42:33 +00:00
abs.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
abs.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
alloca.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
atexit.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atexit.c Merge Lite2 changes 1997-03-11 11:39:58 +00:00
atexit.h Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
atof.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atof.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atoi.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atoi.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
atol.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atol.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
bsearch.3 Sort cross references. 1997-01-20 23:23:22 +00:00
bsearch.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
calloc.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
calloc.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
div.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
div.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exit.3 Sort cross references. 1997-01-20 23:23:22 +00:00
exit.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getenv.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getenv.c Doubled the performance of getenv()/__findenv() by rewriting it to not 1995-10-17 21:37:41 +00:00
getopt.3 Typo. 1997-04-25 20:36:10 +00:00
getopt.c Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
getsubopt.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getsubopt.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
heapsort.c Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
labs.3 Sort cross references. 1997-01-20 23:23:22 +00:00
labs.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ldiv.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
ldiv.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
Makefile.inc Changed all paths to be relative to src/lib instead of src/lib/libc 1997-05-03 03:50:06 +00:00
malloc.3 Malloc flag X makes malloc behave like the canonical xmalloc() wrapper. 1997-05-30 20:39:32 +00:00
malloc.c Fix mutex initialization. 1997-06-04 12:55:49 +00:00
memory.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
merge.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
putenv.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
qsort.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
qsort.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
radixsort.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-19 15:57:20 +00:00
radixsort.c Merge Lite2 changes 1997-03-11 11:39:58 +00:00
rand.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rand.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
random.3 Remove orand* code as promised for the next release 1997-03-29 19:55:03 +00:00
random.c Remove orand* code as promised for the next release 1997-03-29 19:55:03 +00:00
realpath.3 Part 2 of a failed commit (cvs broke). Original message: 1997-03-13 06:58:46 +00:00
realpath.c Part 2 of a failed commit (cvs broke). Original message: 1997-03-13 06:58:46 +00:00
setenv.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strhash.c Return pointer to new hash node when search inserts it (e.g. there 1996-01-13 14:25:04 +00:00
strtod.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
strtod.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtol.3 Fixed missing consts in synopsis. 1997-04-13 13:37:56 +00:00
strtol.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtoll.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtoq.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtoul.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
strtoul.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtoull.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtouq.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
system.3 Submitted by: (based on code in "Advanced Programming in the Unix Environment" 1996-06-05 00:08:54 +00:00
system.c Oops, replace a rather important line that was lost in transit 8-( 1996-06-08 15:28:11 +00:00