devlookup
if ((retval = devlookup(psinfo->pr_ttydev)) != NULL)
if ((retval = devlookup(dev)) != NULL)