Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!ames!vsi1!v7fs1!mvp From: mvp@v7fs1.UUCP (Mike Van Pelt) Newsgroups: alt.sources Subject: Re: Re: ftw (was Re: Anything faster than stat(S)? ...) Message-ID: <863@v7fs1.UUCP> Date: 12 Dec 89 22:08:06 GMT References: <10299@stag.math.lsa.umich.edu> <2400002@hpausla.aso.hp.com> Reply-To: mvp@v7fs1.UUCP (Mike Van Pelt) Organization: Video 7 + G2 = Headland Technology Lines: 15 I just had reason to use ftw in a program, and I thought I'd pass this little tidbit along. For some reason, ftw calls stat, which returns information on the file pointed to by a symbolic link, rather than information about the link itself. Sometimes you may want to do this, but not (as in my case) when you're trying to produce a report of disk usage. The solution: Supply a function stat which calls lstat. It will be used by ld instead of the system stat. -- Mike Van Pelt "Something is happening here, Headland Technology/Video 7 What it is ain't exactly clear..." ...ames!vsi1!v7fs1!mvp -- Pons & Fleischmann