directory reading
Brian Glendenning
bglenden at mandrill.cv.nrao.edu
Wed Aug 15 10:21:50 AEST 1990
I'm converting some old directory reading code to get it to work on
the latest version of Convex OS (8.1). The old code contained:
struct direct *dp;
[...]
if (dp->d_ino == 0)
continue;
Presumably because the reading routines could return non-null pointers
that contained invalid (deleted or whatever) directory entries. 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.
True?
Thanks!
Brian
--
Brian Glendenning - National Radio Astronomy Observatory
bglenden at nrao.edu bglenden at nrao.bitnet (804) 296-0286
More information about the Comp.unix.questions
mailing list