Hi All
I have used a function dlinfo on Solaris. But I am not able to find any cooresponding implemention on Linux AS 2.1. basicall, man page of dlinfo says following (on solaris)
---------------------------------------------------------- NAME dlinfo - dynamic load information SYNOPSIS cc [ flag ... ] file ... -ldl [ library ... ] #include <dlfcn.h> #include <link.h> #include <limits.h> int dlinfo(void *handle, int request, void *p); DESCRIPTION The dlinfo() function extracts information about a dynamically-loaded object. This function is loosely modeled after the ioctl() function. The request argument and a third argument of varying type are passed to dlinfo(). The action taken by dlinfo() depends on the value of the request pro-vided. A handle argument, required for all requests except RTLD_DI_CONFIGADDR, is either the value returned from a dlo-pen() or dlmopen() call, or the special handle RTLD_SELF. If handle is the value returned from a dlopen() or dlmopen() call, the information returned by the dlinfo() call pertains to the specified object. If handle is the special handle RTLD_SELF, the information returned by the dlinfo() call pertains to the caller itself.
----------------------------------------------------------
We are using dlinfo for fething the file name of the specified llibrary.
can somebody pls tell me, what should I do on Linux for the same?
Regards Ajay
On Mon, Sep 01, 2003 at 11:25:39PM +0530, Ajay Bansal wrote:
Hi All
I have used a function dlinfo on Solaris. But I am not able to find any cooresponding implemention on Linux AS 2.1. basicall, man page of dlinfo says following (on solaris)
dlinfo was added to glibc on 2003-03-15, so you can try that in current Severn/Taroon/Rawhide glibcs.
There is also dl_iterate_phdrs to list all currently loaded libraries.
Jakub
Can u please help me more abt this - from where to get the glibc, from where to get the header files, what wud be the end user pre-requisites for using such an application etc?
-----Original Message----- From: rhl-devel-list-admin@redhat.com [mailto:rhl-devel-list-admin@redhat.com] On Behalf Of Jakub Jelinek Sent: Tuesday, September 02, 2003 12:27 AM To: rhl-devel-list@redhat.com
On Mon, Sep 01, 2003 at 11:25:39PM +0530, Ajay Bansal wrote:
Hi All
I have used a function dlinfo on Solaris. But I am not able to find any cooresponding implemention on Linux AS 2.1. basicall, man page of dlinfo says following (on solaris)
dlinfo was added to glibc on 2003-03-15, so you can try that in current Severn/Taroon/Rawhide glibcs.
There is also dl_iterate_phdrs to list all currently loaded libraries.
Jakub
-- Rhl-devel-list mailing list Rhl-devel-list@redhat.com http://www.redhat.com/mailman/listinfo/rhl-devel-list