This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Linker cache file format
- From: Mike Hearn <mike at navi dot cx>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 04 Jan 2005 20:44:53 +0000
- Subject: Linker cache file format
Hello,
For a program I am writing it is convenient to be able to find all
instances of a particular library on the system quickly without knowing
their exact file name, eg to list all implementations of "libxyz.so".
Currently I do this by parsing the output of ldconfig which is reasonably
fast but fragile and ugly.
I would like to change this. So I was wondering if the /etc/ld.so.cache
file format is considered a stable interface (probably not) and whether
there was any API to access it (doubtful). If this isn't the case, then is
my best option to do a scan of each directory in /etc/ld.so.conf[.d]
myself?
thanks -mike