Date: Tue, 28 May 2002 23:40:53 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: "J. Mallett" <jmallett@FreeBSD.ORG> Cc: standards@FreeBSD.ORG Subject: Re: Q&D implementation of dlfunc() Message-ID: <200205290340.g4T3erxr010138@khavrinen.lcs.mit.edu> In-Reply-To: <20020528195236.A66528@FreeBSD.ORG> References: <20020528195236.A66528@FreeBSD.ORG>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 28 May 2002 19:52:36 -0700, "J. Mallett" <jmallett@FreeBSD.ORG> 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@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205290340.g4T3erxr010138>