getdents64 problem
Ulrich Drepper
drepper@redhat.com
Fri Jan 19 08:43:00 GMT 2001
Mogens Kjaer <mk@crc.dk> writes:
> *** getdents.c Thu Jan 18 14:58:26 2001
> --- getdents.c.ORIG Fri Jan 19 12:31:19 2001
> ***************
> *** 157,165 ****
> if ((sizeof (dp->d_ino) != sizeof (kdp->d_ino)
> && dp->d_ino != d_ino)
> || (sizeof (dp->d_off) != sizeof (kdp->d_off)
> ! && (dp->d_off != d_off && dp->d_off != -1)))
> {
> - /* MK patch for d_off == -1 */
> /* Overflow. If there was at least one entry
> before this one, return them without error,
> otherwise signal overflow. */
> --- 157,164 ----
> if ((sizeof (dp->d_ino) != sizeof (kdp->d_ino)
> && dp->d_ino != d_ino)
> || (sizeof (dp->d_off) != sizeof (kdp->d_off)
> ! && dp->d_off != d_off))
> {
> /* Overflow. If there was at least one entry
> before this one, return them without error,
> otherwise signal overflow. */
I cannot see that this is correct. Send me the output of `strace -v'
of a program using getdents. Please note the -v parameter for strace.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list