Subject: Re: Linux support for mremap syscall
To: Rick Byers <>
From: Frank van der Linden <>
List: current-users
Date: 01/09/1998 08:54:38
On Thu, Jan 08, 1998 at 10:08:52PM -0500, Rick Byers wrote:
> Hi,
> I'm in the progress of trying to get Linux Quake2 to run properly under
> NetBSD and it is currently failing because the mremap syscall isn't
> implemented yet under NetBSD (linux_sys_remap in
> sys/compat/linux/linux_misc.c).  From first impressions, I wouldn't think
> it should be too hard to implement remapping, but I really don't know much
> about this sort of thing, so maybe I'm missing something.

There is a PR about this which suggests that mremap() is currently only
called from libc in Linux, and that adding a syscall stub returning EINVAL
will just make this case work. That might do it for you too.

Eventually it needs to be really implemented of course.

- Frank