Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2000 14:20:12 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Marcel Moolenaar <marcel@cup.hp.com>
Cc:        Poul-Henning Kamp <phk@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: offsetof in stddef [was: Re: cvs commit: src/sys/conf param.c ... ]
Message-ID:  <Pine.BSF.4.21.0010301417230.52618-100000@besplex.bde.org>
In-Reply-To: <39FCE2FB.98301D13@cup.hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 29 Oct 2000, Marcel Moolenaar wrote:

> The reason stddef was included was for offsetof (at least for the
> genassym files). This we don't have to do know, but shouldn't we also
> define offsetof in stddef.h the same as in sys/types.h (in terms of
> __offsetof) to avoid redundancy?

We do, but the definition in <sys/types.h> has some lexical differences
in order to expose broken kernel code that includes <stddef.h>.  It
shouldn't be in <sys/types.h> anyway.

Bruce



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?Pine.BSF.4.21.0010301417230.52618-100000>