atom feed4 messages in org.freebsd.freebsd-currentRe: Review: offsetof/<struct.h>/fldof...
FromSent OnAttachments
Poul-Henning KampOct 24, 2000 9:04 am 
Julian ElischerOct 24, 2000 9:56 am 
Justin T. GibbsOct 24, 2000 10:51 am 
Poul-Henning KampOct 24, 2000 11:20 am 
Subject:Re: Review: offsetof/<struct.h>/fldoff patch.
From:Julian Elischer (jul@elischer.org)
Date:Oct 24, 2000 9:56:37 am
List:org.freebsd.freebsd-current

Poul-Henning Kamp wrote:

Please test & review this patch:

http://phk.freebsd.dk/patch/offsetof.patch

----------------- Define offsetof() in <sys/types.h> for the kernel and in <stddef.h> for userland.

#ifdef the definition in <stddef.h> and <sys/types.h> so that we don't need N identical definitions in <machine/ansi.h> but still allow for a MD definition there should need be.

Use offsetof() instead of fldoff()

Remove nested include of <struct.h> from <sys/queue.h>

Remove local definitions of offsetof().

Deprecate <struct.h>

Tell people who get the message what to replace fldoff() with...

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message