This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] readdir (): Do not set 'errno' if end of dir is encountered


Hello,

Attached is a patch + a testcase. The testcase can be executed with any of
the
following directories:

  /cygdrive
  /proc
  /proc/<PID>
  /proc/registry/HKEY_WHATEVER

2003-08-05  Pavel Tsekov  <ptsekov@gmx.net>

	* 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.

Pavel

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

Attachment: scandir.c
Description: Binary data

Attachment: readdir.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]