4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 12:05:47 +08:00

* libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.

This commit is contained in:
Christopher Faylor 2001-11-21 06:57:44 +00:00
parent 7903ee6955
commit d37e401ef3
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2001-11-21 Christopher Faylor <cgf@redhat.com>
* libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
2001-11-19 Hans-Peter Nilsson <hp@bitrange.com> 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
* libc/sys/mmixware/*: Tweak license header in all source files. * libc/sys/mmixware/*: Tweak license header in all source files.

View File

@ -17,16 +17,17 @@
struct dirent struct dirent
{ {
long d_version; /* Used since Cygwin 1.3.3. */ long d_version; /* Used since Cygwin 1.3.3. */
long __d_reserved[2]; long __d_reserved[2];
long d_fd; /* File descriptor of open directory. Used since Cygwin 1.3.3. */ long d_fd; /* File descriptor of open directory.
ino_t d_ino; /* Just for compatibility, it's junk */ Used since Cygwin 1.3.3. */
char d_name[256]; /* FIXME: use NAME_MAX? */ ino_t d_ino; /* Just for compatibility, it's junk */
char d_name[256]; /* FIXME: use NAME_MAX? */
}; };
#define __DIRENT_COOKIE 0xdede4242 #define __DIRENT_COOKIE 0xdede4242
typedef struct typedef struct __DIR
{ {
/* This is first to set alignment in non _COMPILING_NEWLIB case. */ /* This is first to set alignment in non _COMPILING_NEWLIB case. */
unsigned long __d_cookie; unsigned long __d_cookie;
@ -41,7 +42,7 @@ typedef struct
struct struct
{ {
void *__handle; void *__handle;
char __open_p; void *__fh;
} __d_data; } __d_data;
#endif #endif
char __d_filler[16]; char __d_filler[16];