Date: Wed, 13 Nov 2002 10:32:27 -0800 (PST) From: Archie Cobbs <archie@dellroad.org> To: Maxime Henrion <mux@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/sys stddef.h Message-ID: <200211131832.gADIWRDO022590@arch20m.dellroad.org> In-Reply-To: <200211131514.gADFEv54035510@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211131832.gADIWRDO022590>
