> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message