mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 16:21:07 -08:00
(directory_files_internal): Initialize errno.
(toplevel): Include errno.h.
This commit is contained in:
parent
e9fcba3d59
commit
7cc9f69fd9
2 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2001-02-13 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* dired.c (directory_files_internal): Initialize errno.
|
||||
(toplevel): Include errno.h.
|
||||
|
||||
2001-02-12 Andrew Innes <andrewi@gnu.org>
|
||||
|
||||
The following changes are to draw box lines inside characters area
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */
|
|||
#include <sys/stat.h>
|
||||
|
||||
#include "systime.h"
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef VMS
|
||||
#include <string.h>
|
||||
|
|
@ -208,6 +209,7 @@ directory_files_internal (directory, full, match, nosort, attrs)
|
|||
#endif /* not VMS */
|
||||
|
||||
/* Loop reading blocks until EOF or error. */
|
||||
errno = 0;
|
||||
while ((dp = readdir (d)) != NULL)
|
||||
{
|
||||
if (DIRENTRY_NONEMPTY (dp))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue