write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#ifndef _DIRENTRY_H
-#define _DIRENTRY_H 1
+#ifndef _BITS_DIRENT_H
+#define _BITS_DIRENT_H 1
struct dirent
{
- long int d_ino;
+#ifndef __USE_FILE_OFFSET64
+ __ino_t d_ino;
__off_t d_off;
+#else
+ __ino64_t d_ino;
+ __off64_t d_off;
+#endif
unsigned short int d_reclen;
unsigned char d_type;
char d_name[256]; /* We must not include limits.h! */
};
+
+#ifdef __USE_LARGEFILE64
+struct dirent64
+ {
+ __ino64_t d_ino;
+ __off64_t d_off;
+ unsigned short int d_reclen;
+ unsigned char d_type;
+ char d_name[256]; /* We must not include limits.h! */
+ };
+#endif
+
#define d_fileno d_ino /* Backwards compatibility. */
#undef _DIRENT_HAVE_D_NAMLEN
#define _DIRENT_HAVE_D_OFF
#define _DIRENT_HAVE_D_TYPE
-#endif /* _DIRENTRY_H */
+#endif /* bits/dirent.h */