* dir.cc (readdir): Reinstate setting of old ino field for legacy applications.

* dirent.h (dirent): Rename unused field to __ino32.
* passwd.cc (getpwnam_r): Initialize pw_comment field.
This commit is contained in:
Christopher Faylor
2003-09-09 00:21:16 +00:00
parent 7d0e78a71b
commit 51d340e1c8
3 changed files with 10 additions and 3 deletions

View File

@ -23,7 +23,7 @@ struct dirent
__ino64_t d_ino; /* still junk but with more bits */
long d_fd; /* File descriptor of open directory.
Used since Cygwin 1.3.3. */
unsigned __flags; /* Used internally. */
unsigned __ino32;
char d_name[256]; /* FIXME: use NAME_MAX? */
};
#else
@ -33,7 +33,7 @@ struct dirent
long d_version;
ino_t d_ino;
long d_fd;
unsigned long __unused;
unsigned long __ino32;
char d_name[256];
};
#else