Subject: Re: adding __libc_read et al?
To: Simon J. Gerraty <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
Date: 12/31/1999 22:07:51
On Sat, 1 Jan 2000, Simon J. Gerraty wrote:
: >Maybe, though I have trouble imagining what could reasonably use them.
: My libsslfd would use them if available.
: It contains evil magic to hook read(),write() etc so that stdio can have
: SSL transport shoved underneath - works a treat for ftp/ftpd.
Then you may want to have a look at src/lib/libc/include/namespace.h -
there's already some work here, using a simple single underscore instead of
__libc_. However, it's not all complete, nor do we actually use the weak
symbol support behind it.
: Right now I use syscall(2) if available and failing that, I extract
: read.o etc from libc.a and frob the labels :-)
You can always use dlsym() in a dynamic executable.
-- Todd Vierling (email@example.com)