This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: readdir and d_ino set to 0


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]