|
From: Jeremy F. <je...@go...> - 2004-06-04 07:53:12
|
On Thu, 2004-06-03 at 23:51 +0100, Tom Hughes wrote: > Note that it isn't the __libc_xxx > functions I'm forwarding to, it's the original names that are being > overridden by the pthread library. Right, OK. > The only thing I'm not sure about is statically linked programs > but I'm not sure you can statically link a multithreaded program. You can, but we basically lose. > > I was just working on an alternative fix for this by having private > > versions of the __libc_ functions, at least for syscalls. > > The problem is that even the ones that appear to be simple system > call wrappers aren't always - witness the fcntl issue where it > sometimes calls the fcntl64 system call instead. Yeah, I wasn't relishing debugging all that. Your approach looks fine. J |