aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-09-03 19:04:05 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-09-03 19:04:05 +0000
commita3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a (patch)
treef28e1e5966dc9a6ab44444a3315d6ef6bbc2e97a /newlib
parent4f79e37e4df36513140fd49b9540c73f93c82b46 (diff)
downloadnewlib-a3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a.zip
newlib-a3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a.tar.gz
newlib-a3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a.tar.bz2
* libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
field. (__DIRENT_VERSION): New define.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/sys/cygwin/sys/dirent.h5
2 files changed, 10 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 9b18885..83ec9b4 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,11 @@
2001-09-03 Corinna Vinschen <corinna@vinschen.de>
+ * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
+ field.
+ (__DIRENT_VERSION): New define.
+
+2001-09-03 Corinna Vinschen <corinna@vinschen.de>
+
* libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
Shrink __d_reserved accordingly to keep structure size.
(dirfd): Declare external.
diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h
index 5b371cf..f911a56 100644
--- a/newlib/libc/sys/cygwin/sys/dirent.h
+++ b/newlib/libc/sys/cygwin/sys/dirent.h
@@ -13,9 +13,12 @@
#include <sys/types.h>
+#define __DIRENT_VERSION 1
+
struct dirent
{
- long __d_reserved[3];
+ long d_version; /* Used since Cygwin 1.3.3. */
+ long __d_reserved[2];
long d_fd; /* File descriptor of open directory. Used since Cygwin 1.3.3. */
ino_t d_ino; /* Just for compatibility, it's junk */
char d_name[256]; /* FIXME: use NAME_MAX? */