[PATCH] for glibc-2.2 getdents code

Jakub Jelinek jakub@redhat.com
Wed Feb 21 00:02:00 GMT 2001


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.

	Jakub



More information about the Libc-alpha mailing list