what is the equivalent of dynamically loading libraries on Solaris

what is the equivalent of dynamically loading libraries on Solaris

Post by Rickey To » Sun, 01 Mar 1998 04:00:00



On NT it LoadLibrary
On HPUX it is shl_load/shl_unload but I can't seem to find the equivalent
for Solaris

Thanks in advance

Rick

 
 
 

what is the equivalent of dynamically loading libraries on Solaris

Post by Andrew Giert » Mon, 02 Mar 1998 04:00:00


 Rickey> On NT it LoadLibrary

 Rickey> On HPUX it is shl_load/shl_unload but I can't seem to find
 Rickey> the equivalent for Solaris

dlopen()

--
Andrew.

comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>
                           or <URL: http://www.whitefang.com/unix/>

 
 
 

what is the equivalent of dynamically loading libraries on Solaris

Post by Peter Simon » Mon, 02 Mar 1998 04:00:00


-----BEGIN PGP SIGNED MESSAGE-----

[posted and mailed]

 > On HPUX it is shl_load/shl_unload but I can't seem to find the
 > equivalent for Solaris

 | dlopen(3X)       Miscellaneous Library Functions       dlopen(3X)
 |
 | NAME
 |      dlopen - open a shared object
 |
 | SYNOPSIS
 |      cc [ flag ... ] file ...  -ldl [ library ... ]
 |
 |      #include <dlfcn.h>
 |
 |      void *dlopen(const char *pathname, int mode);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1

iQCVAwUBNPmd9A9HL1s0103BAQH1wgQAkm1OY3ARXrt48qfTQh0imCVacxoCVF5/
uZE+TD1rf79dderT0PAEMJTfYl2U6FtaWyq5HeO4iFa+uI+kDVl9P4+ZQ2LxG881
vGghsmLU/FZVat5l2ofYIaN6x3JWGIO4nHC9U5xFfZZ+6fOepoIVfsAmRYcLKGSg
h4GdvtA5IlM=
=7317
-----END PGP SIGNATURE-----