|
||||||
| 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 |
|
|||
|
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 | |
|
|