diff options
author | Christopher Faylor <me@cgf.cx> | 2001-11-21 06:57:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-11-21 06:57:44 +0000 |
commit | d37e401ef3735f41fb3bab8b0d58512afcb0de37 (patch) | |
tree | 1f65b4c18f7ee8f10080e2e9bc5c47f883bb4166 /newlib | |
parent | 7903ee6955c3add49c2aa341ac1fd15adce1025e (diff) | |
download | newlib-d37e401ef3735f41fb3bab8b0d58512afcb0de37.zip newlib-d37e401ef3735f41fb3bab8b0d58512afcb0de37.tar.gz newlib-d37e401ef3735f41fb3bab8b0d58512afcb0de37.tar.bz2 |
* libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/sys/cygwin/sys/dirent.h | 13 |
2 files changed, 11 insertions, 6 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index d172229..cbef2a1 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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> * libc/sys/mmixware/*: Tweak license header in all source files. diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h index f911a56..c393fba 100644 --- a/newlib/libc/sys/cygwin/sys/dirent.h +++ b/newlib/libc/sys/cygwin/sys/dirent.h @@ -17,16 +17,17 @@ 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_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? */ + 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? */ }; #define __DIRENT_COOKIE 0xdede4242 -typedef struct +typedef struct __DIR { /* This is first to set alignment in non _COMPILING_NEWLIB case. */ unsigned long __d_cookie; @@ -41,7 +42,7 @@ typedef struct struct { void *__handle; - char __open_p; + void *__fh; } __d_data; #endif char __d_filler[16]; |