Re: What is the point of mincore() in reserve_area( ) in libs/wine/mmap.c?

2010-05-05 Thread Albert Lee
On Tue, 04 May 2010 10:22:44 -0600, Charles Davis cda...@mymail.mines.edu wrote: On 5/4/10 10:17 AM, Johann Myrkraverk Oskarsson wrote: Hi all, In the Solaris/BSD implementation of reserve_area() in libs/wine/mmap.c there is for (i = 0; i size; i += pagesize) if

What is the point of mincore() in reserve_area() in libs/wine/mmap.c?

2010-05-04 Thread Johann Myrkraverk Oskarsson
Hi all, In the Solaris/BSD implementation of reserve_area() in libs/wine/mmap.c there is for (i = 0; i size; i += pagesize) if (mincore( (caddr_t)addr + i, pagesize, vec ) != -1) break; vec is never used again in that function. What is the point of mincore() ? I'm looking

Re: What is the point of mincore() in reserve_area() in libs/wine/mmap.c?

2010-05-04 Thread Charles Davis
On 5/4/10 10:17 AM, Johann Myrkraverk Oskarsson wrote: Hi all, In the Solaris/BSD implementation of reserve_area() in libs/wine/mmap.c there is for (i = 0; i size; i += pagesize) if (mincore( (caddr_t)addr + i, pagesize, vec ) != -1) break; vec is never used again