From owner-freebsd-standards Tue May 28 20:40:59 2002 Delivered-To: freebsd-standards@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id C3A8C37B403; Tue, 28 May 2002 20:40:53 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g4T3erEN010141; Tue, 28 May 2002 23:40:53 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g4T3erxr010138; Tue, 28 May 2002 23:40:53 -0400 (EDT) Date: Tue, 28 May 2002 23:40:53 -0400 (EDT) From: Garrett Wollman Message-Id: <200205290340.g4T3erxr010138@khavrinen.lcs.mit.edu> To: "J. Mallett" Cc: standards@FreeBSD.ORG Subject: Re: Q&D implementation of dlfunc() In-Reply-To: <20020528195236.A66528@FreeBSD.ORG> References: <20020528195236.A66528@FreeBSD.ORG> Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: 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