From owner-freebsd-current@FreeBSD.ORG Sun Nov 14 23:46:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 427F516A4CE for ; Sun, 14 Nov 2004 23:46:34 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B258C43D48 for ; Sun, 14 Nov 2004 23:46:33 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) iAENkSX3017741; Sun, 14 Nov 2004 18:46:32 -0500 (EST) Date: Sun, 14 Nov 2004 18:46:28 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Sean McNeil In-Reply-To: <1100469834.23915.1.camel@server.mcneil.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: current@freebsd.org Subject: Re: missing weak symbol for pthread_equal in libc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 23:46:34 -0000 On Sun, 14 Nov 2004, Sean McNeil wrote: > > I think pthread_equal should be added to libc. I found it is used in > libxml2 and a link to that library fails without -pthread. The pthread_foo() in libc are mainly for libc usage. If applications want to use pthread_foo(), they really should be linking to the (a) threads library. Look at it this way -- if we didn't use any pthread functions in libc, there wouldn't be _any_ pthread stubs in libc. Also, we could have used __libc_lock(), __libc_unlock(), etc, in libc and have the threads libraries override those functions instead of using _pthread_*(). pthread_equal() would be kinda harmless in libc, but you get my point above, no? -- Dan Eischen