From owner-cvs-all Wed Nov 13 13:30: 8 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8330737B401; Wed, 13 Nov 2002 13:30:05 -0800 (PST) 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 9BA6843E7B; Wed, 13 Nov 2002 13:30:04 -0800 (PST) (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 KAA19255; Wed, 13 Nov 2002 10:32:28 -0800 (PST) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id gADIWSOS022591; Wed, 13 Nov 2002 10:32:28 -0800 (PST) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id gADIWRDO022590; Wed, 13 Nov 2002 10:32:27 -0800 (PST) From: Archie Cobbs Message-Id: <200211131832.gADIWRDO022590@arch20m.dellroad.org> Subject: Re: cvs commit: src/sys/sys stddef.h In-Reply-To: <200211131514.gADFEv54035510@repoman.freebsd.org> To: Maxime Henrion Date: Wed, 13 Nov 2002 10:32:27 -0800 (PST) Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maxime Henrion wrote: > Added files: > sys/sys stddef.h > Log: > Add the sys/stddef.h header, so that we can have ptrdiff_t > definition in the kernel. It also includes the offsetof() > definition which, according to bde@ should be here and not > in sys/types.h, and the definition of NULL so that we're > closer to make it closer to standard C. FYI, There are lots of existing definitions of NULL in the source tree: src/include/dirent.h src/include/locale.h src/include/stddef.h src/include/stdio.h src/include/stdlib.h src/include/string.h src/include/time.h src/include/unistd.h src/include/wchar.h src/include/rpc/types.h src/lib/libstand/stand.h src/sys/boot/libstand/stand.h src/sys/sys/param.h Might be nice to consolidate some of them with your new definition in stddef.h. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message