* include/sys/dirent.h: Add comments for people who are REALLY confused about
whether they should be using something called __invalid_d_ino or not.
This commit is contained in:
parent
1ef48340d5
commit
90e1ee2b25
|
@ -1,3 +1,9 @@
|
||||||
|
2006-01-20 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* include/sys/dirent.h: Add comments for people who are REALLY confused
|
||||||
|
about whether they should be using something called __invalid_d_ino or
|
||||||
|
not.
|
||||||
|
|
||||||
2006-01-20 Corinna Vinschen <corinna@vinschen.de>
|
2006-01-20 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_socket.cc (fhandler_socket::prepare): Fix debug output.
|
* fhandler_socket.cc (fhandler_socket::prepare): Fix debug output.
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
struct dirent
|
struct dirent
|
||||||
{
|
{
|
||||||
long d_version; /* Used since Cygwin 1.3.3. */
|
long d_version; /* Used since Cygwin 1.3.3. */
|
||||||
__ino64_t __invalid_d_ino;
|
__ino64_t __invalid_d_ino; /* DO NOT USE: No longer available since cygwin 1.5.19 */
|
||||||
long d_fd; /* File descriptor of open directory.
|
long d_fd; /* File descriptor of open directory.
|
||||||
Used since Cygwin 1.3.3. */
|
Used since Cygwin 1.3.3. */
|
||||||
unsigned __invalid_ino32;
|
unsigned __invalid_ino32; /* DO NOT USE: No longer available since cygwin 1.5.19 */
|
||||||
char d_name[256]; /* FIXME: use NAME_MAX? */
|
char d_name[256]; /* FIXME: use NAME_MAX? */
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
@ -31,9 +31,9 @@ struct dirent
|
||||||
struct dirent
|
struct dirent
|
||||||
{
|
{
|
||||||
long d_version;
|
long d_version;
|
||||||
ino_t __invalid_d_ino;
|
ino_t __invalid_d_ino; /* DO NOT USE: No longer available since cygwin 1.5.19 */
|
||||||
long d_fd;
|
long d_fd;
|
||||||
unsigned long __invalid_ino32;
|
unsigned long __invalid_ino32; /* DO NOT USE: No longer available since cygwin 1.5.19 */
|
||||||
char d_name[256];
|
char d_name[256];
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
@ -42,7 +42,7 @@ struct dirent
|
||||||
long d_version;
|
long d_version;
|
||||||
long d_reserved[2];
|
long d_reserved[2];
|
||||||
long d_fd;
|
long d_fd;
|
||||||
ino_t __invalid_d_ino;
|
ino_t __invalid_d_ino; /* DO NOT USE: No longer available since cygwin 1.5.19 */
|
||||||
char d_name[256];
|
char d_name[256];
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -113,6 +113,6 @@ enum
|
||||||
/* Convert between stat structure types and directory types. */
|
/* Convert between stat structure types and directory types. */
|
||||||
# define IFTODT(mode) (((mode) & 0170000) >> 12)
|
# define IFTODT(mode) (((mode) & 0170000) >> 12)
|
||||||
# define DTTOIF(dirtype) ((dirtype) << 12)
|
# define DTTOIF(dirtype) ((dirtype) << 12)
|
||||||
#endif
|
#endif /* #if 0 */
|
||||||
#endif /* _POSIX_SOURCE */
|
#endif /* _POSIX_SOURCE */
|
||||||
#endif /*_SYS_DIRENT_H*/
|
#endif /*_SYS_DIRENT_H*/
|
||||||
|
|
Loading…
Reference in New Issue