From owner-freebsd-hackers Thu Mar 21 12:23:31 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA22685 for hackers-outgoing; Thu, 21 Mar 1996 12:23:31 -0800 (PST) Received: from melb.werple.net.au (melb.werple.net.au [203.9.190.18]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA22680 for ; Thu, 21 Mar 1996 12:23:28 -0800 (PST) Received: (from uucp@localhost) by melb.werple.net.au (8.7.5/8.7.3) id HAA02509 for mira!FreeBSD.org!freebsd-hackers; Fri, 22 Mar 1996 07:23:25 +1100 (EST) Message-Id: <199603212023.HAA02509@melb.werple.net.au> >Received: by cimaxp1.cimlogic.com.au; (5.65/1.1.8.2/10Sep95-0953AM) id AA28623; Fri, 22 Mar 1996 07:14:57 +1100 From: John Birrell Subject: Re: User level threads. To: atrad.adelaide.edu.au!msmith@melb.werple.net.au (Michael Smith) Date: Fri, 22 Mar 1996 07:14:57 +1100 (EST) Cc: Glock.COM!mmead@melb.werple.net.au, atrad.adelaide.edu.au!msmith@melb.werple.net.au, novell.com!darrend@melb.werple.net.au, FreeBSD.org!freebsd-hackers@melb.werple.net.au In-Reply-To: <199603210651.RAA11488@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Mar 21, 96 05:21:47 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > matthew c. mead stands accused of saying: > > > > > FreeBSD-current has pthreads and a thread-safe libc. > > > > Where can pthreads be found? > > Hmm, immediate inspection only finds /usr/include/pthread.h and the > libc_r (reentrant aka. thread-safe) libc. There is still a *lot* of work required to make all libc functions reentrant. This is because of all the static variables used. 8-(. The /usr/src/lib/lib_r directory builds libc_r from libc source, adding POSIX thread functions. pthread.h is the only header file required. Compile with -D_THREAD_SAFE and link with -nostdlib -lc_r. > > John Birrel (one l? two?) should be responding to this soon 8) IIRC, it's Two. 8-) > his work. > -- > ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au 119 Cecil Street Ph +61 3 9690 6900 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137