Linker cache file format

Mike Hearn mike@navi.cx
Tue Jan 4 20:39:00 GMT 2005


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



More information about the Libc-alpha mailing list