logo       

Re: Q&D implementation of dlfunc(): msg#00032

Subject: Re: Q&D implementation of dlfunc()
<<On Tue, 28 May 2002 19:52:36 -0700, "J. Mallett" <jmallett@xxxxxxxxxxx> said:

> rv = (uintptr_t)dlsym(handle, symbol);

For the same reason as you can't cast from a data pointer to a
function pointer, there's no guarantee that you can cast from a
uintptr_t (if such a type even exists) to a function pointer.  Since
we're depending on all pointers having the same representation, I'd
rather make it explicit.

-GAWollman


To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-standards" in the body of the message



<Prev in Thread] Current Thread [Next in Thread>