From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 3 17:24:54 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0409D106566B; Tue, 3 Nov 2009 17:24:54 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 96F0E8FC18; Tue, 3 Nov 2009 17:24:53 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 828761CF71; Tue, 3 Nov 2009 18:24:52 +0100 (CET) Date: Tue, 3 Nov 2009 18:24:52 +0100 From: Ed Schouten To: alc@freebsd.org Message-ID: <20091103172452.GU1293@hoeg.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QU0xYvH/CPhunj+E" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org, Alexander Best Subject: Re: mmap(2) with MAP_ANON honouring offset although it shouldn't X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 17:24:54 -0000 --QU0xYvH/CPhunj+E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Alan, * Alan Cox wrote: > The standards for mmap(2) actually disallow values of "off" that are not a > multiple of the page size. >=20 > See http://www.opengroup.org/onlinepubs/000095399/functions/mmap.html for > the following: > Just by accident I saw they changed that behaviour in a newer version of the spec: http://www.opengroup.org/onlinepubs/9699919799/functions/mmap.html --=20 Ed Schouten WWW: http://80386.nl/ --QU0xYvH/CPhunj+E Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkrwZ2QACgkQ52SDGA2eCwUcLQCdHKgsqlj9Os02xLoBxGLYB3NJ bIsAnR1aU8d47nSwDpMeVWJZraH+5PI0 =+88j -----END PGP SIGNATURE----- --QU0xYvH/CPhunj+E--