Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2004 18:46:28 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Sean McNeil <sean@mcneil.com>
Cc:        current@freebsd.org
Subject:   Re: missing weak symbol for pthread_equal in libc
Message-ID:  <Pine.GSO.4.43.0411141834220.16228-100000@sea.ntplx.net>
In-Reply-To: <1100469834.23915.1.camel@server.mcneil.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0411141834220.16228-100000>