> John Polstra wrote:
>
> One of the things on my wish list is a libpthread that can be linked
> with libc.  So the way to accomplish this is to have null hooks with
> weak symbols in libc, and provide the same (non-null) functions in
> libpthread but with strong symbols?

Oh, maybe, but be careful.  Weak symbols don't solve very many kinds
of problems, but they can sure cause a lot of trouble.  I don't have
time to work through this case in detail right now.  But think about
whether a call to read() from inside libc will get the correct version
in all cases.  Consider both static and dynamic linking too -- they
don't behave quite the same.  There are lots of potential gotchas.
Sorry to be so brief.  I can help more with this after FreeBSDCon.

John


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to