tags 356502 fixed-upstream
thanks

Paul,

> The sendmsg(2) and recvmsg(2) contain an incorrect desctiption of
> struct msghdr.
> 
> The manpage says:
> 
>   socklen_t    msg_controllen; /* ancillary data buffer len */
> 
> Whereas the actual implementaton (from {x86_64-linux-gnu/,}bits/socket.h)
> is:
> 
>   size_t msg_controllen; /*...*/
> 
> Ths makes a difference on 64-bit targets.

Hmmm...  POSIX.1 says it should be socklen_t, but as you point out,
the Linux/glibc reality is size_t, and has been so at least as far 
back as glibc 2.0.  So, I've raised a glibc bug:

http://sourceware.org/bugzilla/show_bug.cgi?id=2448

And in the meantime, I have added a NOTE to these two pages
pointing out that glibc actually uses size_t instead of
socklen_t.  (I have left the structure defintion the same,
because it is what POSIX specifies, and merely pointed
out the deviation under the NOTE).

The man-pages changes will be in upstream 2.26.

Thanks for your report Paul.

Cheers,

Michael

-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  
Grab the latest tarball at
ftp://ftp.win.tue.nl/pub/linux-local/manpages/, 
read the HOWTOHELP file and grep the source 
files for 'FIXME'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to