break out non-kernel stuff to <dirent.h>;