struct dirent *, rather than non-const. this makes scandir(3) the same as the scandir implementations in libiberty and glibc, and the select function has no need to modify the dirent.