This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: readdir and d_ino set to 0
- From: Eric Norum <norume at aps dot anl dot gov>
- To: Chris Johns <chrisj at rtems dot org>
- Cc: newlib at sourceware dot org
- Date: Thu, 3 Sep 2009 20:00:27 -0500
- Subject: Re: readdir and d_ino set to 0
- References: <4AA05AC5.4040603@rtems.org>
If I recall my Unix V7 code correctly, I think that inode 0 was
reserved for holding a list of bad blocks. Of course if your disk had
a bad block that was *in* the inode table you were pretty much out of
luck.....
On Sep 3, 2009, at 7:09 PM, Chris Johns wrote:
Hello,
In newlib-1.17.0 used in RTEMS I see readdir has this code:
if (dp->d_ino == 0)
continue;
It would seem to me an ino of 0 is not allowed. Does anyone know why
0 is handled this way ?
Regards
Chris
--
Eric Norum <norume@aps.anl.gov>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793