atom feed9 messages in org.freebsd.freebsd-currentRe: #include <struct.h> in <sys/queue.h>
FromSent OnAttachments
Poul-Henning KampOct 2, 2000 3:05 am 
Jeremy LeaOct 2, 2000 3:14 am 
Poul-Henning KampOct 2, 2000 3:20 am 
Jordan HubbardOct 2, 2000 10:10 am 
Peter van DijkOct 2, 2000 10:52 am 
Siobhan Patricia LynchOct 2, 2000 6:41 pm 
Bruce EvansOct 2, 2000 7:45 pm 
Jeffrey HsuOct 3, 2000 1:07 am 
Bruce EvansOct 5, 2000 4:03 am 
Subject:Re: #include <struct.h> in <sys/queue.h>
From:Jeffrey Hsu (hs@FreeBSD.ORG)
Date:Oct 3, 2000 1:07:54 am
List:org.freebsd.freebsd-current

> I think <struct.h> should have been removed when offsetof() became > standard.

At last count, offsetof() is defined in 11 different places in the kernel: alpha/alpha/machdep.c, line 234 dev/sym/sym_hipd.c, line 347 i386/i386/machdep.c, line 246 kern/sysv_sem.c, line 110 kern/uipc_usrreq.c, line 548 netinet/ip_compat.h, line 56 netinet/ip_fil.h, line 254 netinet6/icmp6.c, line 761 netinet6/in6_proto.c, line 126 netinet6/raw_ip6.c, line 348 pc98/i386/machdep.c, line 254 If we unify it in one header file, I'd be happy to use that for STAILQ_LAST().

> strbase() is now used in <sys/queue.h>. It is > easy to implement directly using offsetof(). Unfortunately, if it is > implemented using offsetof(), then <sys/queue.h> will depend on > <stddef.h>.

So, what's the correct solution?

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