aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-31 20:30:36 +0000
committerChristopher Faylor <me@cgf.cx>2002-05-31 20:30:36 +0000
commit18c04cc4b2cc8ed4afecec03bb4cf12f35312c36 (patch)
tree3319b890ca8d7e8642e893e4c8e13a61c337f22b /winsup/cygwin/fhandler_proc.cc
parentea55e3f7f3a213d4e3b5bdf966eecaf0aa1b7112 (diff)
downloadnewlib-18c04cc4b2cc8ed4afecec03bb4cf12f35312c36.zip
newlib-18c04cc4b2cc8ed4afecec03bb4cf12f35312c36.tar.gz
newlib-18c04cc4b2cc8ed4afecec03bb4cf12f35312c36.tar.bz2
* fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more files.
* fhandler_process.cc (fhandler_process::readdir): Ditto. * fhandler_registry.cc (fhandler_registry::readdir): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 3a8990b..27a8220 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -216,6 +216,7 @@ fhandler_proc::readdir (DIR * dir)
}
found++;
}
+ set_errno (ENMFILE);
return NULL;
}