[PATCH] for glibc-2.2 getdents code

Trond Myklebust trond.myklebust@fys.uio.no
Wed Feb 21 04:04:00 GMT 2001


>>>>> " " == H J Lu <hjl@valinux.com> writes:

     > Thanks for your testcase. But I believe your proposed patch is
     > incorrect. It won't work with telldir/seekdir. I think the
     > glibc bug is to use the getdents64 system call to implement
     > getdents () on a 32bit system. It doesn't make any senses since
     > getdents () is a 32bit interface on a 32bit system.  Here is a
     > patch.

Fair enough. I quite agree that it makes little sense to call
getdents64 for a 32bit interface, and reverting to using the old
interface is certainly a good fix as far as the NFS problem is
concerned.

Cheers,
  Trond



More information about the Libc-alpha mailing list