Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-01-19 08:34:39 +0300
committerChristopher Faylor <me@cgf.cx>2006-01-19 08:34:39 +0300
commit9025f2aa7db8d74735ca47496ef988c1562be1c0 (patch)
tree7085a3663280b2a8bbef40496b306d62e6636d3c /winsup/cygwin/dir.cc
parent96f5988e31b3f46899366e6ee95b2249ef24148f (diff)
* dir.cc (readdir_worker): Fill in invalid fields with -1. Accommodate name
change from __ino32 to __invalid_ino32. * include/sys/dirent.h (__invalid_ino32): Rename from __ino32. Don't define unused d_type macros.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r--winsup/cygwin/dir.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index e00aa77ab..14f02d9a1 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -104,8 +104,8 @@ readdir_worker (DIR *dir, dirent *de)
/* error return */;
else if (!CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO)
{
- de->__invalid_d_ino = 0;
- de->__ino32 = 0;
+ de->__invalid_d_ino = (ino_t) -1;
+ de->__invalid_ino32 = (uint32_t) -1;
if (de->d_name[0] == '.')
{
if (de->d_name[1] == '\0')
@@ -150,7 +150,7 @@ readdir_worker (DIR *dir, dirent *de)
__ino64_t dino = hash_path_name (dir->__d_dirhash, "\\");
de->__invalid_d_ino = hash_path_name (dino, de->d_name);
}
- de->__ino32 = de->__invalid_d_ino; // for legacy applications
+ de->__invalid_ino32 = de->__invalid_d_ino; // for legacy applications
}
return res;
}