Okay, so the basic idea is to read the information from /proc/<PID>/maps ...
Thanks for the hint with lsof.
Okay, so the basic idea is to read the information from /proc/<PID>/maps ...
Thanks for the hint with lsof.
Thanks for your answer & help!
I use plain C for this project.
Thanks very much! I will look into this, didn't think of it.
Is there any way for a DSO in Linux to find out where it was loaded from?
(In Windows I have the GetModuleHandle and GetModuleFilename functions to determine the full path to the library. Since I need to load other libraries from a different directory within a certain predefined hierarchy it would be convenient to have a way to get the full path to a DSO. So far I'm using an environment variable that points to the base directory.)
Thanks for any hints, Google wasn't very helpful, so far ...
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board