From owner-freebsd-arch Thu Jan 23 17: 3:49 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A4E537B401 for ; Thu, 23 Jan 2003 17:03:48 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A15B143F13 for ; Thu, 23 Jan 2003 17:03:47 -0800 (PST) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id h0O13cxg012893; Thu, 23 Jan 2003 20:03:38 -0500 (EST) Date: Thu, 23 Jan 2003 20:03:37 -0500 (EST) From: Daniel Eischen To: Max Khon Cc: "M. Warner Losh" , ben@timing.com, freebsd-arch@freebsd.org Subject: Re: _REENTRANT in math.h & libm oddities. In-Reply-To: <20030124065210.B44070@iclub.nsu.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 24 Jan 2003, Max Khon wrote: > hi, there! > > On Thu, Jan 23, 2003 at 02:49:33PM -0700, M. Warner Losh wrote: > > > : I removed a lot of the _THREAD_SAFE stuff a couple of years ago, > > : but it wasn't complete removed. -stable might be worse off. > > > > In a newish tree it looks like there are only 3 'real' places where > > we're wrong: > > > > find . -type f | xargs egrep _THREAD_SAFE > > > > code: > > > > ./contrib/ntp/ntpd/refclock_pcf.c:#if defined(_REENTRANT) || defined(_THREAD_SAFE) > > this is contrib > > > ./include/rpc/clnt.h:#ifdef _THREAD_SAFE > > ./include/rpc/clnt.h:#endif /* _THREAD_SAFE */ > > this should be removed (only _THREAD_SAFE should be left) > I'll take care if there will be no objections > > > ./lib/libc_r/sys/uthread_error.c:#ifdef _THREAD_SAFE > > ./lib/libpthread/sys/thr_error.c:#ifdef _THREAD_SAFE > > ./lib/libc_r/Makefile:CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE > > ./lib/libmilter/Makefile:CFLAGS+=-D_THREAD_SAFE > > ./lib/libpthread/Makefile:CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE > > this can be safely removed > I'll take care if there will be no objections Knock yourself out (proceed) :-) -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message