* libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.

This commit is contained in:
Corinna Vinschen 2001-09-03 16:33:53 +00:00
parent 9867ecfdb3
commit 6d47f33adb
2 changed files with 8 additions and 1 deletions

View File

@ -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> 2001-08-29 Joel Sherrill <joel@OARcorp.com>
* libc/include/sys/unistd.h: Prototype chroot() for RTEMS. * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.

View File

@ -15,7 +15,8 @@
struct dirent 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 */ ino_t d_ino; /* Just for compatibility, it's junk */
char d_name[256]; /* FIXME: use NAME_MAX? */ char d_name[256]; /* FIXME: use NAME_MAX? */
}; };
@ -49,6 +50,8 @@ struct dirent *readdir (DIR *);
void rewinddir (DIR *); void rewinddir (DIR *);
int closedir (DIR *); int closedir (DIR *);
int dirfd (DIR *);
#ifndef _POSIX_SOURCE #ifndef _POSIX_SOURCE
off_t telldir (DIR *); off_t telldir (DIR *);
void seekdir (DIR *, off_t loc); void seekdir (DIR *, off_t loc);