Subject: Re: pthreads plan
To: Michael Graff <>
From: Brian C. Grayson <>
List: tech-userlevel
Date: 11/07/1999 15:18:11
On Sat, Nov 06, 1999 at 01:23:48AM -0800, Michael Graff wrote:
> My plan:
> 	Create thread-safe versions of most of libc.

  Um, hasn't someone already done a lot/all of this work?  I know
Klaus did a lot of libc-hacking, and over a year ago at that. 
Take a peek at /usr/src/lib/libc/include/reentrant.h, and, for
example, /usr/src/lib/libc/stdlib/random.c (grep for REENT or

  The reentrant.h describes some of the rationale for why things
are done the way they are (you can compile with your own mutex
ops, for example).

  Brian Grayson