Date: Thu, 28 Jul 2005 21:31:39 +0200 From: "jean-marc DETREZ" <jm.detrez@cegetel.net> To: "'Alexandre Julliard'" <julliard@winehq.org> Cc: emulation@freebsd.org, wine-devel@winehq.com, barner@FreeBSD.org Subject: RE: patch for libs/wine/mmap.c making wine running on FreeBSD 5.x Message-ID: <20050728193151.4D90A3181FD@smtp.cegetel.net> In-Reply-To: <87mzo7feiy.fsf@wine.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Perhaps i found the begin of an explanation, in NetBSD and linux , error codes for mincore() are : =20 [EFAULT] vec points to an illegal address. [EINVAL] addr is not a multiple of the system page size. [EINVAL] len is equal to 0. [ENOMEM] The address range specified is invalid for the calling process, or one or more of the pages specified in the range are = not mapped =20 So I think that when you call mincore for testing if a page is mapped or = not the result would be -1 and errno set to ENOMEM. But in FreeBSD a man mincore give this errors conditions: [EFAULT] vec points to an illegal address. [EINVAL] addr is not a multiple of the system page size. It seems that when a page is not mapped mincore return no error code. -----Message d'origine----- De=A0: julliard@wine.dyndns.org [mailto:julliard@wine.dyndns.org] De la = part de Alexandre Julliard Envoy=E9=A0: jeudi 28 juillet 2005 11:48 =C0=A0: jean-marc DETREZ Cc=A0: wine-devel@winehq.com; emulation@freebsd.org; 'Gerald Pfeifer'; barner@freebsd.org Objet=A0: Re: patch for libs/wine/mmap.c making wine running on FreeBSD = 5.x "jean-marc DETREZ" <jm.detrez@cegetel.net> writes: > I made a little correction of "try_mmap_fixed" because it's seems = to me > that the function didn't really test the result (vec). That's the way it should be, we don't care if the page is in core or not, we only want to know if something is mapped there. --=20 Alexandre Julliard julliard@winehq.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050728193151.4D90A3181FD>