summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_process.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-08-05 03:04:28 +0000
committerChristopher Faylor <me@cgf.cx>2003-08-05 03:04:28 +0000
commit3fea2e408799e2a4539ddaf050331e877639a8aa (patch)
tree00a642eba1145a48575ac19196946f807851bb4b /winsup/cygwin/fhandler_process.cc
parent2f631ebc94703f06ddb26fd256daff72686d01f0 (diff)
downloadcygnal-3fea2e408799e2a4539ddaf050331e877639a8aa.tar.gz
cygnal-3fea2e408799e2a4539ddaf050331e877639a8aa.tar.bz2
cygnal-3fea2e408799e2a4539ddaf050331e877639a8aa.zip
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 193fd959c..44b7189b3 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -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);