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.
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message