From a3e67ddfe6806949e6f441e89a1dbe5f0b92ed1a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 3 Sep 2001 19:04:05 +0000 Subject: * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number field. (__DIRENT_VERSION): New define. --- newlib/ChangeLog | 6 ++++++ newlib/libc/sys/cygwin/sys/dirent.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'newlib') 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 + * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number + field. + (__DIRENT_VERSION): New define. + +2001-09-03 Corinna Vinschen + * 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 +#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? */ -- cgit v1.1