How can a shared library (.so) implementer ascertain the location of the shared library .so file in the filesystem from within the implementation?
IOW, if I am writing shared library foo.so in the C programming language, how can I get a pointer to a character string which contains the full path on the Linux file system to where foo.so lives?