Subject: Re: [patch] Re: lang/mono/ ... error: too few arguments to function
To: Blair Sadewitz <blair.sadewitz@gmail.com>
From: Matthias Drochner <m.drochner@googlemail.com>
List: pkgsrc-users
Date: 08/09/2007 18:38:09
Takahiro Kambe <taca@back-street.net> wrote:
> Is it better to disable using mremap(2) on NetBSD?
I'm not sure. It should be easy to translate the flags,
see the appended patch. (just compile-tested, I'm
illiterate in C#)
Otoh, I'm not sure whether it is a good idea to expose
such a platform dependant function to an abstract
environment. (It certainly does not belong into a
"Posix" namespace.) This will only lead to unportable
C## programs. But this was the decision of the mono
authors.
"Blair Sadewitz" <blair.sadewitz@gmail.com> wrote:
> On NetBSD, I define MREMAP_MAYMOVE to 0.
As said, programs expecting Linux semantics, and
not setting MAYMOVE could assume that the address
doesn't change.
> all of the uses of mremap that I've
> encountered used MREMAP_MAYMOVE
In that case it is a wrapper for C# programs running
in the mono VM. The programs using that call are yet
to be written (well, I hope not...).
best regards
Matthias