X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D8A3206.7070502@redhat.com>
Date: Wed, 23 Mar 2011 11:46:46 -0600
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Broken autoconf mmap test
References: <4D8668C6.8020500@cornell.edu> <4D890D95.6090302@redhat.com> <4D891A55.6050601@cornell.edu> <20110323091921.GB10657@calimero.vinschen.de> <4D89D4AA.6070903@cornell.edu> <20110323132622.GM31220@calimero.vinschen.de> <4D89FEC7.3000107@cornell.edu> <20110323154421.GN31220@calimero.vinschen.de> <4D8A308F.508@cornell.edu>
In-Reply-To: <4D8A308F.508@cornell.edu>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8F6453832A104F63738C7846"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig8F6453832A104F63738C7846
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 03/23/2011 11:40 AM, Ken Brown wrote:
>> Usually it shouldn't.  While you can write into a mmaped area beyond
>> EOF up to the end of the last page, it doesn't make a lot of sense.
>> The data will never show up in the mapped file.
>>
>> I have no idea if there are applications out there which rely on this
>> crude behaviour.
>=20
> It doesn't look like there's going to be an autoconf change to resolve
> this:
>=20
>   http://lists.gnu.org/archive/html/autoconf/2011-03/msg00041.html

Unless the right thing to do in autoconf is to separate the test into
two levels; one of whether most mmap works but you can't extend files
(cygwin always passes) and one whether writing beyond EOF works as
required by POSIX (cygwin currently fails on W64, but hopefully fewer
packages rely on this stricter behavior).  Or figure out a way to make
cygwin work around the W64 limitations.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig8F6453832A104F63738C7846
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNijIGAAoJEKeha0olJ0Nqa0YH/ja7v6Oe7f1X5TXBXs8TOsey
5Z9tukdK9nHQA0KObFB7xIdpY+l9Vt0LCwLPXz+7tE9NqFa63Fv+0VwmKy9OWbO4
GFsOcJinRWPvuYiwcNucljWFxUWTmoJC1Klc18xQSBCGbCPXmVjGbl4QeKou+Tk1
DhiXxBaBBpkoWgHyU/qzJBvnJlVe0PoC/6cBP/xtPkWv6k05n0T6mpW8hZgwykVN
dGwwGa1eT1Th8Uy12Au7Zv7HEbIxECGABhTaG4Vrf0wSPFVVNKSSKnNRgNSMR+wM
eGs1BdhrLRh/Hbz+5zw1Bh3jqYyopFfrGOPm/3KMrXritd//07mCfJqXQD+pVgo=
=Ljty
-----END PGP SIGNATURE-----

--------------enig8F6453832A104F63738C7846--
