This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: getdents64 problem


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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]