Date: Fri, 28 Mar 2008 14:03:57 +0100 From: Ed Schouten <ed@80386.nl> To: FreeBSD Standards <freebsd-standards@freebsd.org> Subject: Ambiguous sentence in POSIX onlinepubs 11.1.11 Message-ID: <20080328130357.GC51074@hoeg.nl>
next in thread | raw e-mail | index | archive | help
--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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080328130357.GC51074>