From owner-freebsd-standards@FreeBSD.ORG Fri Mar 28 13:03:58 2008 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAE5B106564A for ; Fri, 28 Mar 2008 13:03:58 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 98A5C8FC12 for ; Fri, 28 Mar 2008 13:03:58 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id F2FDA1CC50; Fri, 28 Mar 2008 14:03:57 +0100 (CET) Date: Fri, 28 Mar 2008 14:03:57 +0100 From: Ed Schouten To: FreeBSD Standards Message-ID: <20080328130357.GC51074@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qsoMWdMv/ifdm7CC" Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Ambiguous sentence in POSIX onlinepubs 11.1.11 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2008 13:03:59 -0000 --qsoMWdMv/ifdm7CC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, The last couple of days I've been reading the POSIX onlinepubs now and then to find out how my new mpsafe TTY implementation conforms to POSIX. In section 11.1.11, there is the following sentence: "The last process to close a terminal device file shall cause any output to be sent to the device and any input to be discarded." This sentence is quite ambiguous. It could mean: "The last process to close a terminal device file shall cause any output to be sent to the device, [but] any input to be discarded." but it could also mean: "The last process to close a terminal device file shall cause any output [which still has] to be sent to the device and any input to be discarded." I know FreeBSD currently implements the first behaviour. It drains output on closure, but how can we know for sure this is the correct behaviour? After I read POSIX, I changed my mpsafetty branch to perform the second behaviour, but after that I reread the section and discovered the sentence was actually ambiguous. --=20 Ed Schouten WWW: http://g-rave.nl/ --qsoMWdMv/ifdm7CC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfs7L0ACgkQ52SDGA2eCwUtcgCeKXO1+lOui3PnQXJqrufWA8qk YGEAniW9GOY9B2Xom8wDBuZhZRxXlGkt =6DQI -----END PGP SIGNATURE----- --qsoMWdMv/ifdm7CC--