Simplify uses of readdir() by creating a function ReadDir() that

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3f749924f82efd5b2f4b424f6c69a89a2959e4b3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-19T21:34:03Z
Releases: 8.1.0
Simplify uses of readdir() by creating a function ReadDir() that
includes error checking and an appropriate ereport(ERROR) message.
This gets rid of rather tedious and error-prone manipulation of errno,
as well as a Windows-specific bug workaround, at more than a dozen
call sites.  After an idea in a recent patch by Heikki Linnakangas.

Files