openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting » Using Dlinfo Like On Solaris To Get List Of Shared Libraries Used By P

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Jan-2008, 13:42
sjunsk
Guest
 
Posts: n/a
Default

I am porting some code from a solaris system. On solaris I can do the following to get a list of shared libraries used by my program:

#if defined(__solaris__)
dlinfo(RTLD_SELF,RTLD_DI_LINKMAP,(void **)&map);
while (map != NULL )
{
printf("sl=%s\n",map->l_name);
map = map->l_next;
}
#endif

The above code compiles on my suse linux 10 system except for the RTLD_SELF define. I tried using the same value as solaris but that did not work. Is there a way to get a list of shared libraries on suse from a running program?

Also, there is no man page for dlinfo on my system, but there are man pages for the related dlopen,dlsym,etc. calls. However the dlinfo call does exist.
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2