MC> I am porting some software to unix (including AIX 4.x), but I
MC> don't have access to an AIX 4.x machine yet, and was wondering
MC> if anyone could tell me what the AIX equivalent of HP-UX's
MC> shl_load() and Solaris' dlopen() series of commands. Is there
MC> any way to get a man-page like description of these functions so
MC> that I can come up with a design that has some hope of working
MC> on as many unix variants as possible?
if you're porting to AIX 4.2, then the dlfcn stuff is in there, just
like solaris. if you're porting to AIX 4.1, you should get the free
package from ibm called "Shared Library Hookable Symbols/6000", aka
PRPQ 91153, which implements the dlfcn stuff.
as an alternative, you can load up an object via load(), and then use
loadquery() to find out where the symbol table is in memory, and then
you can search for a given symbol by yourself. it's a bit more of a
pain than just getting the above PRPQ and using the dlfcn library.
there's also a partial dlfcn emulation lib written by Jens-Uwe Mager.
you can find it at <URL:ftp://anubis.han.de/pub/aix/dlfcn.shar>.
after evaluating it, i chose not to use it since it doesn't handle
dlopen(NULL), and it searches for all symbols in the object on the
dlopen, which isn't what i wanted. i went with using load() and
loadquery() since they'll work on AIX 3.2.5 and 4.x, both of which i
needed to support.
-greg loaded up on dynamite. hey brother can you
spare a light. i'm going to scrape the sky
tonight and shake down all the stars