Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2015 14:52:12 -0500
From:      Patrick Mooney <patrick.mooney@joyent.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Interpretation of POSIX.1-2008 for recvmsg
Message-ID:  <CABtm=mpH=qM3P_q8tB66s8sLRMxr11hYDpPoYKAeMNy6Z_kqLQ@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.11.1508021131030.7491@z.fncre.vasb>
References:  <CABtm=mocvtBO46PDR7SPokOr57z_DphOu5rKZPk7ATjweL_Awg@mail.gmail.com> <20150802000945.GL78154@funkthat.com> <476D3B86-896E-4049-8006-ADF964C7ECC3@icloud.com> <20150802034945.GN78154@funkthat.com> <alpine.BSF.2.11.1508021131030.7491@z.fncre.vasb>

next in thread | previous in thread | raw e-mail | index | archive | help
OK.  It seems clear, given the consensus in behavior across the BSDs
as well as OSX.
We'll find a separate way to enable the Linux-y behavior in our emulation.

Thanks for your time.

On 2 August 2015 at 06:31, Marcin Cieslak <saper@saper.info> wrote:
> On Sat, 1 Aug 2015, John-Mark Gurney wrote:
>
>> Jordan Hubbard wrote this message on Sat, Aug 01, 2015 at 18:10 -0700:
>> > One obvious approach might be to run Patrick's test case on a OS X sys=
tem, since it's one of the very few remaining (still living) UNIX??? platfo=
rms that has to pass the official (and really large) Unix Conformance test =
suite.  Whatever OS X's behavior is, arguably right or wrong, you'll at lea=
st know that TOG signed off on it.
>>
>> 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
>>
>> and NetBSD 6.1.5:
>> # ./peektest
>> peek len: 0 errno: 0 flags: 12
>> recv len: 20 errno: 0 flags: 0
>>
>> and OpenBSD 5.7:
>> # ./peektest
>> peek len: 0 errno: 0 flags: 12
>> recv len: 20 errno: 0 flags: 0
>
> The results are correct: the peektest.c tries
> to use a Linux-only extension to recvmsg()
> - giving MSG_PEEK | MSG_TRUNC as the input flag.
>
> ~Marcin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABtm=mpH=qM3P_q8tB66s8sLRMxr11hYDpPoYKAeMNy6Z_kqLQ>