This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Is this an incorrect Qualcomm usage or a glibc bug?
Florian, Thanks for your explanation, it makes sense.
But I still don't understand what is the (__ss_aligntype __ss_align) used for?
In the beginning my understanding is that this is for aligning
__ss_padding in sockaddr_storage to sin6_addr in sockaddr_in6, which
are finally both at 8th byte of the struct buffer on our platform as I
commented in the original email. But now as per your explanation the
both-at-8th-byte thing seems just a coincidence and all Qualcomm's
typecast are just (inappropriately) based on this coincidence. I'm a
bit confused here.
Could you please introduce what's the original purpose of
(__ss_aligntype __ss_align)?
Thanks,
Honan