From owner-cvs-sys Sat Aug 30 11:53:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA28292 for cvs-sys-outgoing; Sat, 30 Aug 1997 11:53:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA28133; Sat, 30 Aug 1997 11:51:28 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id LAA06252; Sat, 30 Aug 1997 11:50:07 -0700 (PDT) Date: Sat, 30 Aug 1997 11:50:07 -0700 (PDT) Message-Id: <199708301850.LAA06252@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/vm vm_mmap.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1997/08/30 11:50:06 PDT Modified files: sys/vm vm_mmap.c Log: Allow non-page aligned file offset mmap's, providing that the system is allowed to choose the address, or that the MAP_FIXED address has the same remainder when modulo PAGE_SIZE as the file offset. Apparently this is posix1003.1b specified behavior. SVR4 and the other *BSD's allow it too. It costs us nothing to support and means we don't get EINVAL on some mmap code that works perfectly elsewhere. Obtained from: NetBSD Revision Changes Path 1.67 +47 -23 src/sys/vm/vm_mmap.c