From owner-freebsd-arch@FreeBSD.ORG Mon Apr 14 14:55:55 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 826DA10656AE for ; Mon, 14 Apr 2008 14:55:55 +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 462AC8FC1B for ; Mon, 14 Apr 2008 14:55:55 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 1F72C1CF2E; Mon, 14 Apr 2008 16:52:31 +0200 (CEST) Date: Mon, 14 Apr 2008 16:52:31 +0200 From: Ed Schouten To: Jeff Roberson Message-ID: <20080414145231.GJ5934@hoeg.nl> References: <1309.1208100178@critter.freebsd.dk> <20080413131724.X959@desktop> <20080414074710.GI5934@hoeg.nl> <20080413223053.U959@desktop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8+odlFQADydc3R4z" Content-Disposition: inline In-Reply-To: <20080413223053.U959@desktop> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: arch@freebsd.org Subject: Re: f_offset X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 14:55:55 -0000 --8+odlFQADydc3R4z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Jeff Roberson wrote: > You should use an sx lock which can be held across such operations. Non= =20 > seekable devices, terminals included, have to serialize all IO. They are= =20 > treated separately by posix. It's all so confusing that the standards seem to change then. When I take a look at the POSIX onlinepubs, the articles seem to mention the opposite: http://www.opengroup.org/onlinepubs/009695399/functions/read.html "The behavior of multiple concurrent reads on the same pipe, FIFO, or terminal device is unspecified." http://www.opengroup.org/onlinepubs/009695399/functions/write.html "This volume of IEEE Std 1003.1-2001 does not specify behavior of concurrent writes to a file from multiple processes. Applications should use some form of concurrency control." --=20 Ed Schouten WWW: http://g-rave.nl/ --8+odlFQADydc3R4z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkgDb68ACgkQ52SDGA2eCwUzYwCfVb77MvmedRLqPwP2Jo6zrTUF PrYAn28KWSfn7Lcke0ZXmL51kh4Zz2VR =lYto -----END PGP SIGNATURE----- --8+odlFQADydc3R4z--