This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] for glibc-2.2 getdents code
On Wed, Feb 21, 2001 at 09:05:28AM +0100, Jakub Jelinek wrote:
> On Tue, Feb 20, 2001 at 04:37:02PM -0800, H . J . Lu wrote:
> > 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.
>
> It makes a lot of sense. Only getdents64 system call sets the d_type field.
If you want to get d_type, use getdents64, but not getdents. It is
the same as LFS. You can only get the right information with the
right interface.
--
H.J. Lu (hjl@valinux.com)