Path: utzoo!utgpu!water!watmath!clyde!cbosgd!mandrill!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: comp.sources.bugs Subject: Re: mkmf bugs Message-ID: <6948@ncoast.UUCP> Date: 2 Jan 88 19:06:46 GMT References: <2418@ihlpe.ATT.COM> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.sources.bugs Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 16 As quoted from <2418@ihlpe.ATT.COM> by dcon@ihlpe.ATT.COM (452is-Connet): +--------------- | Here are a set of diffs to fix some bugs in mkmf. The majority were | to get it running on SYSV. The others are: | 1. mkmf would read ALL entries in a directory, including deleted files. | - Checks d_ino (== 0 -> file deleted). +--------------- Since your patches emulate readdir() by using read(), you would see this. A better way to do this is to use dir.c from News 2.11 or rn sources; these emulate the BSD directory routines correctly, including automatic skipping of deleted entries. -- Brandon S. Allbery, Moderator of comp.sources.misc {hoptoad,harvard!necntc,cbosgd,sun!mandrill!hal,uunet!hnsurg3}!ncoast!allbery [This space reserved for future quotes and similar brain twisters.]