Hi, Here is the simple patch to fix mincore() returning wrong error. mincore(2) manpage says, it should return EINVAL, if length is non-positive. Bug details are in: http://bugme.osdl.org/show_bug.cgi?id=4612 Thanks, Badari