This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Question to rewinddir() implementation in newlib/libc/posix
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Wed, 03 Mar 2010 15:13:52 +0100
- Subject: Question to rewinddir() implementation in newlib/libc/posix
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.