From: Ulrich Drepper Date: Fri, 31 Oct 1997 22:52:34 +0000 (+0000) Subject: (struct dirent): For consistency, force d_ino to use ino_t and X-Git-Tag: glibc-2.16-ports-before-merge~3386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c573a9c69cfecfd79ba3063a516fb275d541372e;p=thirdparty%2Fglibc.git (struct dirent): For consistency, force d_ino to use ino_t and supply padding. --- diff --git a/sysdeps/unix/sysv/linux/alpha/bits/dirent.h b/sysdeps/unix/sysv/linux/alpha/bits/dirent.h index 4d717e4194b..a371a552ffa 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/dirent.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/dirent.h @@ -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;