Interpretation of POSIX.1-2008 for recvmsg

Jordan Hubbard jordanhubbard at icloud.com
Sun Aug 2 04:15:56 UTC 2015


> On Aug 1, 2015, at 8:49 PM, John-Mark Gurney <jmg at funkthat.com> wrote:
> 
> Ok, I know it's a bit old, but MacOSX 10.7.5:
> $./peektest 
> peek len: 0 errno: 0 flags: 12
> recv len: 20 errno: 0 flags: 0

I missed Patrick’s reference to his peektest.c program the first time - whoops - or I’d have just run it myself!

On version 10.10.5, x86_64 architecture:

jkh at katana-> ./peektest
peek len: 0 errno: 0 flags: 12
recv len: 20 errno: 0 flags: 0

So yep, that’s the “reasonable behavior” from a UNIX2003 conformance perspective.

- Jordan



More information about the freebsd-hackers mailing list