Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 95 10:13:21 +0100
From:      Paul Kranenburg <pk@cs.few.eur.nl>
To:        wollman@halloran-eldar.lcs.mit.edu, markd@grizzly.com
Cc:        questions@FreeBSD.org
Subject:   Re: dlopen for FreeBSD?
Message-ID:  <9501270913.AA11730@cs.few.eur.nl>

next in thread | raw e-mail | index | archive | help
> Amazing, looks like all it needs is a .h file and a man page (well, and
> the dlerror function)!!!
> 

A quick-and-dirty dlerror() goes like this:

char *
dlerror()
{
	int	error;

	if (ld_entry == NULL ||
	    (*ld_entry->dlctl)(NULL, DL_GETERRNO, &error) == -1)
		return "Service unavailable";

	return (char *)strerror(error);
}

-pk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9501270913.AA11730>