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>2003-05-11 04:23:41 +0400
committerChristopher Faylor <me@cgf.cx>2003-05-11 04:23:41 +0400
commitec48a953944cc7e7f801e8908af00c7a6a6831c0 (patch)
treee9df5ec78ad7d3362c6f734f53f8607056f880db
parent066ca06fd0cf299c158c3a1fb45a66c738543551 (diff)
* libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly) 64 bit
inodes.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/cygwin/sys/dirent.h8
2 files changed, 10 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index ad7259b24..838169265 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-10 Christopher Faylor <cgf@redhat.com>
+
+ * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
+ 64 bit inodes.
+
2003-05-09 Corinna Vinschen <corinna@vinschen.de>
* libc/include/sys/config.h: Remove all Cygwin specific configuration.
diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h
index 810d8592c..486642df8 100644
--- a/newlib/libc/sys/cygwin/sys/dirent.h
+++ b/newlib/libc/sys/cygwin/sys/dirent.h
@@ -13,17 +13,19 @@
#include <sys/types.h>
-#define __DIRENT_VERSION 1
+#define __DIRENT_VERSION 2
+#pragma pack(push,4)
struct dirent
{
long d_version; /* Used since Cygwin 1.3.3. */
- long __d_reserved[2];
+ ino_t d_ino; /* still junk but with more bits */
long d_fd; /* File descriptor of open directory.
Used since Cygwin 1.3.3. */
- ino_t d_ino; /* Just for compatibility, it's junk */
+ unsigned long old_d_ino;/* Just for compatibility, it's junk */
char d_name[256]; /* FIXME: use NAME_MAX? */
};
+#pragma pack(pop)
#define __DIRENT_COOKIE 0xdede4242