Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 1995 10:30:26 -0500
From:      Garrett Wollman <wollman@halloran-eldar.lcs.mit.edu>
To:        "Jordan K. Hubbard" <jkh@freefall.cdrom.com>
Cc:        current@freefall.cdrom.com
Subject:   dlopen() and Garrett's comments on fn pointers!
Message-ID:  <9503301530.AA16296@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199503300605.WAA15938@freefall.cdrom.com>
References:  <199503300605.WAA15938@freefall.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 29 Mar 1995 22:05:36 -0800, "Jordan K. Hubbard" <jkh@freefall.cdrom.com> said:

> In case no one has noticed, the dlsym() routine returns a void* for
> both function and data pointers! :-)

Yup.  You have to take an intermediate step through a large-enough
integer (like unsigned long) in order to do it without diagnostics.
(The result is still implementation-defined.)

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



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