Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site baylor.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!ut-sally!ut-ngp!shell!neuro1!baylor!peter
From: peter@baylor.UUCP (Peter da Silva)
Newsgroups: net.unix-wizards
Subject: Re: help with dir. structure sysV vs. 4.2BSD
Message-ID: <477@baylor.UUCP>
Date: Mon, 19-Aug-85 11:12:26 EDT
Article-I.D.: baylor.477
Posted: Mon Aug 19 11:12:26 1985
Date-Received: Sat, 24-Aug-85 02:30:37 EDT
References: <1290@cwruecmp.UUCP>
Organization: The Power Elite, Houston, TX
Lines: 17

> It uses a low level read (shown below; it is in
> mindist() ) to look at the directory. I believe this 
> is the line which gives me trouble.
> 
>        while (read(fd,(char *) &nbuf, sizeof(struct direct)) > 0)
> 
> I think I should be using DIRSIZ(dp), instead of sizeof... but
> this is where I get in over my head. Has anyone out there 
> ported this to 4.2? I have the rest of the sources, but I
> didn't want to post K&P's program without their permission.

You want to replace the code with the library routines to read
directories. Look it up in section 3 of the manual.
-- 
	Peter (Made in Australia) da Silva
		UUCP: ...!shell!neuro1!{hyd-ptd,baylor,datafac}!peter
		MCI: PDASILVA; CIS: 70216,1076