hard links: how to tell with system call under BSD4.3?
Bill Shirley
bill at gothamcity.jsc.nasa.gov
Thu May 16 23:54:34 AEST 1991
In article <1344 at VAX1.CC.UAKRON.EDU>, r3jjs at VAX1.CC.UAKRON.EDU (Jeremy J Starcher) writes:
|> In article <1991May10.210452.28889 at ux1.cso.uiuc.edu> phil at ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes:
|> >
|> >Check for the link count. That will tell you how many names the file has.
|> >For a directory it should always be 2, one for the parent pointing to it an
^
at least
|> >one for it's own "." file.
|>
|> Hm.. not sure if our system is damaged or not, but all of a directories
|> children also have a link to the parent (..).
this is *definately* how it should be !!
|>
|> I can tell how many branches there are by looking at the hardlink number
|> and subracting two.
More information about the Comp.unix.programmer
mailing list