* dir.cc (opendir): Write version information to __d_dirent->d_version.
This commit is contained in:
parent
a3e67ddfe6
commit
2321ebb2aa
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Sep 3 21:06:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* dir.cc (opendir): Write version information to __d_dirent->d_version.
|
||||||
|
|
||||||
Mon Sep 3 18:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
Mon Sep 3 18:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygwin.din: Add `dirfd'.
|
* cygwin.din: Add `dirfd'.
|
||||||
|
|
|
@ -127,6 +127,7 @@ opendir (const char *dirname)
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
strcpy (dir->__d_dirname, real_dirname.get_win32 ());
|
strcpy (dir->__d_dirname, real_dirname.get_win32 ());
|
||||||
|
dir->__d_dirent->d_version = __DIRENT_VERSION;
|
||||||
dir->__d_dirent->d_fd = open (dir->__d_dirname, O_RDONLY | O_DIROPEN);
|
dir->__d_dirent->d_fd = open (dir->__d_dirname, O_RDONLY | O_DIROPEN);
|
||||||
/* FindFirstFile doesn't seem to like duplicate /'s. */
|
/* FindFirstFile doesn't seem to like duplicate /'s. */
|
||||||
len = strlen (dir->__d_dirname);
|
len = strlen (dir->__d_dirname);
|
||||||
|
|
Loading…
Reference in New Issue