Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!morganucodon.cis.ohio-state.edu!jgreely From: jgreely@morganucodon.cis.ohio-state.edu (J Greely) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: Date: 5 Dec 90 18:47:16 GMT References: <25146@adm.brl.mil> <1990Dec5.052124.28435@erg.sri.com> <10960:Dec507:07:4190@kramden.acf.nyu.edu> Sender: news@tut.cis.ohio-state.edu Reply-To: J Greely Organization: Ohio State University Computer and Information Science Lines: 11 In-reply-to: brnstnd@kramden.acf.nyu.edu's message of 5 Dec 90 07:07:41 GMT In article <10960:Dec507:07:4190@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >Hardly. You just look at the file size. Other than the file size, there >is no way a portable program can tell the difference between a hole and >an allocated block of zeros. That only works if 1) stat returns the number of blocks, and 2) statfs (or its equivalent) returns the correct block size. -- J Greely (jgreely@cis.ohio-state.edu; osu-cis!jgreely)