Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!rutgers!mcnc!uvaarpa!murdoch!murdoch.acc.virginia.edu!bglenden From: bglenden@mandrill.cv.nrao.edu (Brian Glendenning) Newsgroups: comp.unix.questions Subject: directory reading Message-ID: Date: 15 Aug 90 00:21:50 GMT Sender: news@murdoch.acc.Virginia.EDU Organization: National Radio Astronomy Observatory Lines: 19 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@nrao.edu bglenden@nrao.bitnet (804) 296-0286