From owner-freebsd-standards@FreeBSD.ORG Mon Oct 27 06:23:18 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC99316A4B3; Mon, 27 Oct 2003 06:23:18 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF4043F75; Mon, 27 Oct 2003 06:23:17 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h9REN3P16911; Mon, 27 Oct 2003 15:23:03 +0100 (MET) Date: Mon, 27 Oct 2003 15:23:03 +0100 (CET) From: Harti Brandt To: Tony Finch In-Reply-To: <20031027141123.GB22725@chiark.greenend.org.uk> Message-ID: <20031027152139.C63585@beagle.fokus.fraunhofer.de> References: <20031027144140.V63585@beagle.fokus.fraunhofer.de> <20031027141123.GB22725@chiark.greenend.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: standards@freebsd.org cc: sparc64@freebsd.org Subject: Re: 64bit NULL? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 14:23:19 -0000 On Mon, 27 Oct 2003, Tony Finch wrote: TF>On Mon, Oct 27, 2003 at 02:49:51PM +0100, Harti Brandt wrote: TF>> TF>> According to ISO-C NULL is a symbol that TF>> defines a null pointer so that: TF>> TF>> execl(..., NULL) TF>> TF>> appears to be legal, yet will probably cause failure on FreeBSD-sparc64. TF> TF>No, NULL is an implementation-defined null pointer constant, not a null TF>pointer. The difference is that a null pointer constant is an integer TF>constant expression that evaluates to zero (optionally cast to void*), TF>and a null pointer is a null pointer constant converted to a pointer type TF>(which might involve changes in representation). Therefore using a bare TF>NULL to terminate the execl argument list is not in general legal. Thanks, Tony. I found the relevant place (6.3.2.3). This sounds logical. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org