*BSD News Article 86182


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!news.uoregon.edu!tezcat!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Dynamically-Loaded Libraries Supported??
Date: 5 Jan 1997 17:18:48 GMT
Organization: Private BSD site, Dresden
Lines: 39
Message-ID: <5aonpo$8lr@uriah.heep.sax.de>
References: <kientzleE3IDqw.2Hx@netcom.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33601

kientzle@netcom.com wrote:

> I recently saw a description of the calls used by Linux (and other
> Unix systems?) for dynamically loading and unloading shared libraries
> at run time.  These were: dlopen(), dlsym(), and dlclose().  Are these
> (or the equivalent) supported by FreBSD?  The man pages for my FreeBSD
> 2.1 system don't show them, nor do the O'Reilly 4.4BSD manuals.

DLOPEN(3)                                               DLOPEN(3)

NAME
       dlopen,  dlsym,  dlerror,  dlclose  -  simple programmatic
       interface to the dynamic linker

SYNOPSIS
       #include <dlfcn.h>

       void *dlopen(path, mode)
       const char *path; int mode;

       void *dlsym(handle, symbol)
       void *handle; const char *symbol;

       char *dlerror()

       int dlclose(handle);
       void *handle;

They used to be around for a long time.  I think the shared lib
implementation also uses them, basically.

Well, the man page source has CVS tags reaching back to FreeBSD 2.0.5.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)