From owner-freebsd-emulation Wed Jun 14 6:19:48 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from knight.cons.org (knight.cons.org [194.233.237.86]) by hub.freebsd.org (Postfix) with ESMTP id 4B62437C19D for ; Wed, 14 Jun 2000 06:19:45 -0700 (PDT) (envelope-from cracauer@knight.cons.org) Received: (from cracauer@localhost) by knight.cons.org (8.9.3/8.9.3) id PAA02814; Wed, 14 Jun 2000 15:19:43 +0200 (CEST) Date: Wed, 14 Jun 2000 15:19:43 +0200 From: Martin Cracauer To: emulation@freebsd.org Cc: "Raymond A. Wiker" Subject: Linux mmap(... MAP_ANON ... fd ...) fix for review Message-ID: <20000614151942.A2649@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Linux mmap allows allows MAP_ANON with a valid file descriptor, ours dows not. I propose the following fix, which makes Xanalys (ex-Harlequin) Lispworks work. [Raymond, could you please verify that?] Since MAP_ANON can savely ignore the fd parameter, I don't see any possible bad effect from this change and unless someone objects, I will commit it. It also improves debug output by showing what has been mapped to what by the emulator. Thanks for feedback Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message