From owner-freebsd-arch Sat Aug 24 11:30: 7 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A0C837B400 for ; Sat, 24 Aug 2002 11:30:03 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11FDD43E6A for ; Sat, 24 Aug 2002 11:30:03 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id LAA19840; Sat, 24 Aug 2002 11:29:17 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7OISOR28346; Sat, 24 Aug 2002 11:28:24 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208241828.g7OISOR28346@arch20m.dellroad.org> Subject: Re: NULL In-Reply-To: <20020823.213113.89131668.imp@bsdimp.com> "from M. Warner Losh at Aug 23, 2002 09:31:13 pm" To: "M. Warner Losh" Date: Sat, 24 Aug 2002 11:28:24 -0700 (PDT) Cc: wollman@lcs.mit.edu, arch@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG M. Warner Losh writes: > : Is 0LL allowed as a null pointer constant? > > Yes. Any constant integer express that evaluates to 0 is a valid > 'null pointer'. FYI- Current is now "((void *)0)-clean" and LINT compiles with -Werror. So things are ready if/when we want to try switching. These are the files that define NULL: include/dirent.h include/locale.h include/stddef.h include/stdio.h include/stdlib.h include/string.h include/time.h include/unistd.h include/wchar.h include/rpc/types.h lib/libstand/stand.h sys/boot/libstand/stand.h sys/sys/param.h -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message