[CFR] correct type of addrinfo.ai_addrlen and netent.n_net
des at des.no
Tue May 31 13:08:36 PDT 2005
Warner Losh <imp at bsdimp.com> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > Warner Losh <imp at bsdimp.com> writes:
> > > Dag-Erling Smørgrav <des at des.no> writes:
> > > > What do we gain from removing the padding? Is there even a single
> > > > practical benefit to doing so?
> > > It is for posix compatibility.
> > Nonsense. POSIX does not forbid padding or additional structure
> > members. The exact wording is: [...]
> Did you bother reading what I posted? I don't think so since you'd
> have known that ai_addrlen was changed to be socklen_t for posix
> compliance, and the padding was added for ABI compatibility. The
> removal of padding is the normal sort of thing that's done during
> major revisions. It was there, indirectly, for POSIX compliance.
I know that. I am questioning the need to *remove* the padding, as
you would know if *you* had bothered reading what *I* posted. I've
included it so you can double-check.
> Maybe the padding removal is too painful given all the extra 'oh, by
> the ways' that we're stumbling over.
That is exactly what I'm saying.
BTW, could you please fix your MUA to correctly attribute quotes?
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-standards