From owner-freebsd-hackers@freebsd.org Sun Aug 2 04:15:56 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1693D9AF88D for ; Sun, 2 Aug 2015 04:15:56 +0000 (UTC) (envelope-from jordanhubbard@icloud.com) Received: from nk11p03mm-asmtp002.mac.com (nk11p03mm-asmtpout002.mac.com [17.158.232.237]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 003D11DD6 for ; Sun, 2 Aug 2015 04:15:55 +0000 (UTC) (envelope-from jordanhubbard@icloud.com) Received: from [10.20.30.61] (75-101-82-48.static.sonic.net [75.101.82.48]) by nk11p03mm-asmtp002.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NSF00BR1T5X8510@nk11p03mm-asmtp002.mac.com> for freebsd-hackers@freebsd.org; Sun, 02 Aug 2015 04:15:39 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-08-01_02:2015-07-31,2015-08-01,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1508020073 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Interpretation of POSIX.1-2008 for recvmsg From: Jordan Hubbard In-reply-to: <20150802034945.GN78154@funkthat.com> Date: Sat, 01 Aug 2015 21:15:28 -0700 Cc: "freebsd-hackers@freebsd.org" , Patrick Mooney Content-transfer-encoding: quoted-printable Message-id: <337118A1-5F96-4E7F-A62F-9D586025AE0A@icloud.com> References: <20150802000945.GL78154@funkthat.com> <476D3B86-896E-4049-8006-ADF964C7ECC3@icloud.com> <20150802034945.GN78154@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.2104) X-Mailman-Approved-At: Sun, 02 Aug 2015 11:05:51 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Aug 2015 04:15:56 -0000 > On Aug 1, 2015, at 8:49 PM, John-Mark Gurney wrote: >=20 > Ok, I know it's a bit old, but MacOSX 10.7.5: > $./peektest=20 > peek len: 0 errno: 0 flags: 12 > recv len: 20 errno: 0 flags: 0 I missed Patrick=E2=80=99s reference to his peektest.c program the first = time - whoops - or I=E2=80=99d have just run it myself! On version 10.10.5, x86_64 architecture: jkh@katana-> ./peektest peek len: 0 errno: 0 flags: 12 recv len: 20 errno: 0 flags: 0 So yep, that=E2=80=99s the =E2=80=9Creasonable behavior=E2=80=9D from a = UNIX2003 conformance perspective. - Jordan