| From | Sent On | Attachments |
|---|
| 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 | |
Refine Search
| From | Sent On | Attachments |
|---|---|---|
| Poul-Henning Kamp | Oct 2, 2000 3:05 am | |
| Jeremy Lea | Oct 2, 2000 3:14 am | |
| Poul-Henning Kamp | Oct 2, 2000 3:20 am | |
| Jordan Hubbard | Oct 2, 2000 10:10 am | |
| Peter van Dijk | Oct 2, 2000 10:52 am | |
| Siobhan Patricia Lynch | Oct 2, 2000 6:41 pm | |
| Bruce Evans | Oct 2, 2000 7:45 pm | |
| Jeffrey Hsu | Oct 3, 2000 1:07 am | |
| Bruce Evans | Oct 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

