Question to rewinddir() implementation in newlib/libc/posix
Sebastian Huber
sebastian.huber@embedded-brains.de
Wed Mar 3 14:14:00 GMT 2010
Hi,
the function rewinddir() uses
_seekdir((dirp), (off_t)0);
The function _seekdir() is implemented in telldir.c. Here the offset is
actually a hash table index. Since 0 is not a special case I doubt that the
rewinddir() implementation is correct.
CU
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list