Date: Sun, 2 Aug 2015 11:31:59 +0000 From: Marcin Cieslak <saper@saper.info> To: John-Mark Gurney <jmg@funkthat.com> Cc: Jordan Hubbard <jordanhubbard@icloud.com>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Patrick Mooney <patrick.mooney@joyent.com> Subject: Re: Interpretation of POSIX.1-2008 for recvmsg Message-ID: <alpine.BSF.2.11.1508021131030.7491@z.fncre.vasb> In-Reply-To: <20150802034945.GN78154@funkthat.com> References: <CABtm=mocvtBO46PDR7SPokOr57z_DphOu5rKZPk7ATjweL_Awg@mail.gmail.com> <20150802000945.GL78154@funkthat.com> <476D3B86-896E-4049-8006-ADF964C7ECC3@icloud.com> <20150802034945.GN78154@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 system, since it's one of the very few remaining (still living) UNIX??? platforms 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 least 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?alpine.BSF.2.11.1508021131030.7491>