[PATCH] Fix opendir

Ulrich Drepper drepper@redhat.com
Wed Aug 27 16:57:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> readdir/readdir64 assume dirp->data is aligned enough for struct dirent64,
> which on 32-bit NPTL arches is not true.

Applied, thanks.


> Unrelated question: seekdir/telldir work with long int offset instead of
> off_t/off64_t. Shouldn't there be new API like ftello/fseeko
> (seekdiro/telldiro/seekdiro64/telldiro64)?

Theoretically yes.  But I haven't seen any need for this so far.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/TOLp2ijCOnn/RHQRAmpBAJ0drEmGqHUdNk/AtD3SuHaK79hmEQCcDHxy
MZwT60d1OBV3KMPjqO7bFgc=
=DJPf
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list