morepages
if (morepages(amt / pagesz + NPOOLPAGES) == 0 &&
morepages(amt / pagesz) == 0)
static int morepages(int n);