(struct dirent): For consistency, force d_ino to use ino_t and

supply padding.
This commit is contained in:
Ulrich Drepper 1997-10-31 22:52:34 +00:00
parent ee6f798644
commit c573a9c69c

View File

@ -19,10 +19,14 @@
#ifndef _BITS_DIRENT_H
#define _BITS_DIRENT_H 1
/* We don't have to make a difference for __USE_FILE_OFFSET64. */
struct dirent
{
long int d_ino;
#ifdef __USE_FILE_OFFSET64
__ino64_t d_ino;
#else
__ino_t d_ino;
int __pad;
#endif
__off_t d_off;
unsigned short int d_reclen;
unsigned char d_type;
@ -30,6 +34,7 @@ struct dirent
};
#ifdef __USE_LARGEFILE64
/* Note dirent64 is the same as dirent. */
struct dirent64
{
__ino64_t d_ino;