Michael Vergoz wrote:
> Bruce,
>
> <snip>
>         ret = size; // ret = 0x2001
>         if((ret%_apr_mem_page_size) != 0) { // 0x0001
>                 ret -= (ret%_apr_mem_page_size); // ret -= 0x0001 = 0x2000
>                 ret += _apr_mem_page_size*map->pager; // ret += 0x1000*PAGER
>         }
>    // ret = 0x3000 :P
> </snip>
>
> When you try to sync a file into memory (file to memory) apr_mem_map() will
> also do a "pager" auto update...

Hi Mike,

You cannot extend mmapped files.  The trailing page is just there to avoid
a seg fault.  :) - Bruce

Reply via email to