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

Johann "Myrkraverk" Oskarsson johann at myrkraverk.com
Tue May 4 11:17:55 CDT 2010


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 at this in reference to bug 22033.


Johann



More information about the wine-devel mailing list