* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if

end of directory condition is encountered as per SUSv2.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_process (fhandler_process::readdir): Ditto.
* fhandler_registry (fhandler_registry::readdir): Ditto.
This commit is contained in:
Christopher Faylor
2003-08-05 03:04:28 +00:00
parent 2f631ebc94
commit 3fea2e4087
5 changed files with 12 additions and 10 deletions

View File

@ -147,10 +147,7 @@ struct dirent *
fhandler_process::readdir (DIR * dir)
{
if (dir->__d_position >= PROCESS_LINK_COUNT)
{
set_errno (ENMFILE);
return NULL;
}
return NULL;
strcpy (dir->__d_dirent->d_name, process_listing[dir->__d_position++]);
syscall_printf ("%p = readdir (%p) (%s)", &dir->__d_dirent, dir,
dir->__d_dirent->d_name);