From owner-freebsd-current@FreeBSD.ORG Sat Aug 28 04:28:07 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C24B16A4CE; Sat, 28 Aug 2004 04:28:07 +0000 (GMT) Received: from freebsd3.cimlogic.com.au (adsl-20-121.swiftdsl.com.au [218.214.20.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2197C43D5E; Sat, 28 Aug 2004 04:28:07 +0000 (GMT) (envelope-from jb@cimlogic.com.au) Received: by freebsd3.cimlogic.com.au (Postfix, from userid 102) id 19BEF6A946; Sat, 28 Aug 2004 14:28:06 +1000 (EST) Date: Sat, 28 Aug 2004 14:28:05 +1000 From: John Birrell To: Brian Fundakowski Feldman Message-ID: <20040828042805.GP7113@freebsd3.cimlogic.com.au> References: <47158390.20040827112834@ulstu.ru> <20040827091556.GM7113@freebsd3.cimlogic.com.au> <1698443921.20040827135316@ulstu.ru> <200408271245.15447.mistry.7@osu.edu> <20040827230502.GS77326@green.homeunix.org> <20040828013612.GN7113@freebsd3.cimlogic.com.au> <20040828040118.GA1085@green.homeunix.org> <20040828040936.GO7113@freebsd3.cimlogic.com.au> <20040828042331.GD1085@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040828042331.GD1085@green.homeunix.org> User-Agent: Mutt/1.4.2.1i cc: Angry Virus cc: freebsd-current@freebsd.org Subject: Re: Re[2]: Wine and mmap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2004 04:28:07 -0000 On Sat, Aug 28, 2004 at 12:23:31AM -0400, Brian Fundakowski Feldman wrote: > Cool, sounds like a wrapper to mmap() that takes care of this for every > BSD by allocating 1MB of memory (for i386/amd64 4GB address space compat(?)) > and mincore() all possible address space on it then choosing the right area > itself.... getpagesize() and mincore() (and doing it in a thread-safe > manner) can fix this temporarily for all BSDs in the WINE code, I'd think. How do you tell FreeBSD's dlopen() where to map shared libraries that just look like normal shared libraries. It isn't Wine code that is failing. -- John Birrell