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
..
1997-02-22 15:12:41 +00:00
1997-03-11 11:39:58 +00:00
1996-07-12 18:57:58 +00:00
1997-01-20 23:23:22 +00:00
1997-02-22 15:12:41 +00:00
1997-01-20 23:23:22 +00:00
1997-04-25 20:36:10 +00:00
1997-01-20 23:23:22 +00:00
1997-06-04 12:55:49 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1997-03-11 11:39:58 +00:00
1997-04-13 13:37:56 +00:00