This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]