directory reading

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Aug 15 23:31:24 AEST 1990


In article <BGLENDEN.90Aug14202150 at mandrill.cv.nrao.edu> bglenden at mandrill.cv.nrao.edu (Brian Glendenning) writes:
>            if (dp->d_ino == 0)
>               continue;
>It looks like modern readdir(3)'s only return pointers to valid entries,
>and NULL at the end, so a test of this type is no longer required.

Yes, all versions of readdir() are expected to filter out "deleted" entries
so there is no need to test for that in the application.



More information about the Comp.unix.questions mailing list