[1.18.0] rewinddir operation
Xavier Guérin
xavier.guerin@imag.fr
Mon Mar 8 17:32:00 GMT 2010
Dear list,
I just encountered a small issue with rewinddir. Although opendir and readdir works properly
on my operating system, I can't make rewinddir working.
After reading the code of _seekdir, I don't seem to understand how it could work anyway.
It looks like _seekdir relies on dd_hash to locate the the entry the user is looking for.
However, dd_hash is only used by telldir and seekdir. I know that seekdir should only be used
with values returned by telldir, but rewinddir bypasses this restriction and uses 0 as off_t parameter.
Consequently, the first few lines of _seekdir fail, since dd_hash[LOCHASH(0)] does not contain a vaild
ddloc entry.
Could you please tell me what I am missing ?
Thanks in advance,
Xavier
-----
Xavier Guérin - Doctoral student
TIMA Laboratory, SLS Group
46, av. Félix Viallet, 38000 GRENOBLE, FR
Mail : xavier.guerin@imag.fr
Phone : +33(0)4 76 57 47 59
Ad Astra Per Aspera
Triste e' quel discepolo che non avanza il suo maestro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3683 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20100308/a22d59e2/attachment.p7s>
More information about the Newlib
mailing list