Quoting Mikko Tyolajarvi <[EMAIL PROTECTED]>:

> In local.freebsd.stable you write:
> 
> >Quoting Roman Shterenzon <[EMAIL PROTECTED]>:
> 
> >> Hello,
> >> I wanted to use linux unace from www.winace.com
> >> (http://praf.nirvanet.net/winace/linunace203.tgz),
> >> but unfortunately it doesn't work.
> >> When I used truss on it, I've seen this:
> 
> [...]
> 
> >> linux_mremap(0x28109000,0x61000,0x81000,0x1)     ERR#12 'Cannot
> allocate
> >> memory'
> 
> [...]
> 
> >This is what I get when I run it on remote linux system:
> 
> >mremap(0x40000000, 135168, 266240, MREMAP_MAYMOVE) = 0x40000000
> 
> [...]
> 
> >It doesn't give me any hints :(
> 
> From a Linux mremap() man page:
> 
>  void *mremap(void *old_address, size_t old_size, size_t new_size,
>             unsigned long flags);
> 
> And from linux_mremap() in the linuxulator (linux_misc.c):
> 
>         if (args->new_len > args->old_len) {
>                 p->p_retval[0] = 0;
>                 return ENOMEM;
>         }
> 
> To me it looks like extending a mmapped region with mremap() isn't
> supported.
> 
>   $.02,
>   /Mikko
> -- 
>  Mikko
> Työläjä[EMAIL PROTECTED]
>  RSA Security
> 
Hmm.. Is it possible to completely unmap and then remap this region?
And if it is, how? The fd is not known to the mremap handler. :(

--Roman Shterenzon, UNIX System Administrator and Consultant
[ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to