mincore: allow offset and length to be specified