Re: [PATCH] Re: Multiple cmsghdrs in msghdr

2015-04-20 Thread Jason McIntyre
On Mon, Apr 20, 2015 at 12:46:20PM -0600, Theo de Raadt wrote: > > On Thu, Apr 16, 2015 at 09:19:13AM -0400, William Orr wrote: > > > This documents the error code when passing multiple cmsg structs. Let me > > > know if the wording needs to be improved. > > > > > > Index: lib/libc/sys/send.2 > >

Re: [PATCH] Re: Multiple cmsghdrs in msghdr

2015-04-20 Thread Theo de Raadt
> On Thu, Apr 16, 2015 at 09:19:13AM -0400, William Orr wrote: > > This documents the error code when passing multiple cmsg structs. Let me > > know if the wording needs to be improved. > > > > Index: lib/libc/sys/send.2 > > === > > R

Re: [PATCH] Re: Multiple cmsghdrs in msghdr

2015-04-20 Thread Jason McIntyre
On Thu, Apr 16, 2015 at 09:19:13AM -0400, William Orr wrote: > This documents the error code when passing multiple cmsg structs. Let me > know if the wording needs to be improved. > > Index: lib/libc/sys/send.2 > === > RCS file: /cvs/

[PATCH] Re: Multiple cmsghdrs in msghdr

2015-04-16 Thread William Orr
This documents the error code when passing multiple cmsg structs. Let me know if the wording needs to be improved. Index: lib/libc/sys/send.2 === RCS file: /cvs/src/lib/libc/sys/send.2,v retrieving revision 1.31 diff -u -p -r1.31 send

Re: Multiple cmsghdrs in msghdr

2015-04-15 Thread Philip Guenther
On Wed, Apr 15, 2015 at 11:21 AM, William Orr wrote: > On 4/15/15 5:37 AM, Otto Moerbeek wrote: >> On Wed, Apr 15, 2015 at 11:32:11AM +0200, Mark Kettenis wrote: >> Date: Tue, 14 Apr 2015 21:26:25 -0400 From: William Orr ... Is this behavior intentional, and the documentation is mi

Re: Multiple cmsghdrs in msghdr

2015-04-15 Thread William Orr
On 4/15/15 5:37 AM, Otto Moerbeek wrote: > On Wed, Apr 15, 2015 at 11:32:11AM +0200, Mark Kettenis wrote: > >>> Date: Tue, 14 Apr 2015 21:26:25 -0400 >>> From: William Orr >>> >>> Hey, >>> >>> I was debugging a few CPython test failures yesterday, and I noticed >>> that attaching multiple cmsg st

Re: Multiple cmsghdrs in msghdr

2015-04-15 Thread Otto Moerbeek
On Wed, Apr 15, 2015 at 11:32:11AM +0200, Mark Kettenis wrote: > > Date: Tue, 14 Apr 2015 21:26:25 -0400 > > From: William Orr > > > > Hey, > > > > I was debugging a few CPython test failures yesterday, and I noticed > > that attaching multiple cmsg structures causes unp_internalize to return >

Re: Multiple cmsghdrs in msghdr

2015-04-15 Thread Mark Kettenis
> Date: Tue, 14 Apr 2015 21:26:25 -0400 > From: William Orr > > Hey, > > I was debugging a few CPython test failures yesterday, and I noticed > that attaching multiple cmsg structures causes unp_internalize to return > EINVAL. > > I've looked in unix(4) and sendmsg(2), and this caveat isn't doc

Re: Multiple cmsghdrs in msghdr

2015-04-15 Thread Otto Moerbeek
Always fun, cmsg structures. Anyway, I'll try to find some info on this (maybe Stevens has something to say here). But your experiments indicate that various Unixes do not agree, so it's probably better to avoid sending multiple cmsg structures. Or there is a subtle error in the way you build you

Multiple cmsghdrs in msghdr

2015-04-14 Thread William Orr
Hey, I was debugging a few CPython test failures yesterday, and I noticed that attaching multiple cmsg structures causes unp_internalize to return EINVAL. I've looked in unix(4) and sendmsg(2), and this caveat isn't documented anywhere. I looked at other OSes, and Linux supports this, FreeBSD fa