This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Weak pthread function
- To: hjl@lucon.org (H.J. Lu)
- Subject: Re: Weak pthread function
- From: Roland McGrath <roland@frob.com>
- Date: Fri, 4 Sep 1998 14:01:24 -0400
- Cc: drepper@cygnus.com (Ulrich Drepper), libc-hacker@cygnus.com (GNU C Library)
> libobjc.a uses pthread_key_create, pthread_create, pthread_setspecific,
> thread_getspecific and pthread_mutex_trylock. We should provide them
> in libc as weak functions.
Why doesn't libobjc.a use them with weak externs and handle their absence?
This seems like a slippery slope of defining stubs in libc for an arbitrary
number of functions from libpthreads.