Sources Bugzilla – Bug 2448
msg_controllen should be typed as socklen_t
Last modified: 2006-04-02 17:20:42 UTC
In <bits/socket.h>, the msg_controllen field of the msghdr
field is typed as size_t (perhaps because the definition was
based on the kernel_size_t used in the Linux kernel).
However, POSIX reguires this field to be typed as socklen_t,
and glibc should probably do this.
Tell this to the kernel people. They define the data structure. It's not
possible to use socklen_t because it has a different size on 64-bit platforms.
Subject: Re: msg_controllen should be typed as socklen_t
> It's not possible to use socklen_t because it has a different
> size on 64-bit platforms.
The referrent of the second 'it' in that sentence was unclear. I'm
assuming 'it' == sizeof(__kernel_size_t), right?