diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-09-03 16:33:53 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-09-03 16:33:53 +0000 |
commit | 6d47f33adbbab01dc8b10327874eca5132520235 (patch) | |
tree | d3ae2b11833171e7a955b928f8057d2c9ab1d450 /newlib | |
parent | 9867ecfdb3dca69f38e339878eb87faccb9c50f7 (diff) | |
download | newlib-6d47f33adbbab01dc8b10327874eca5132520235.zip newlib-6d47f33adbbab01dc8b10327874eca5132520235.tar.gz newlib-6d47f33adbbab01dc8b10327874eca5132520235.tar.bz2 |
* libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/sys/cygwin/sys/dirent.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c92ac3d..3dd34a8 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2001-09-03 Corinna Vinschen <corinna@vinschen.de> + + * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member. + 2001-08-29 Joel Sherrill <joel@OARcorp.com> * libc/include/sys/unistd.h: Prototype chroot() for RTEMS. diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h index 4d58302..5b371cf 100644 --- a/newlib/libc/sys/cygwin/sys/dirent.h +++ b/newlib/libc/sys/cygwin/sys/dirent.h @@ -15,7 +15,8 @@ struct dirent { - long __d_reserved[4]; + long __d_reserved[3]; + 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? */ }; @@ -49,6 +50,8 @@ struct dirent *readdir (DIR *); void rewinddir (DIR *); int closedir (DIR *); +int dirfd (DIR *); + #ifndef _POSIX_SOURCE off_t telldir (DIR *); void seekdir (DIR *, off_t loc); |