How do you find the symbolic links to files.

J Greely jgreely at morganucodon.cis.ohio-state.edu
Thu Dec 6 05:47:16 AEST 1990


In article <10960:Dec507:07:4190 at kramden.acf.nyu.edu>
 brnstnd at 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 at cis.ohio-state.edu; osu-cis!jgreely)



More information about the Comp.unix.internals mailing list