Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!stanford.edu!eos!aio!gothamcity.jsc.nasa.gov!bill From: bill@gothamcity.jsc.nasa.gov (Bill Shirley) Newsgroups: comp.unix.programmer Subject: Re: hard links: how to tell with system call under BSD4.3? Message-ID: <1991May16.135434.23207@aio.jsc.nasa.gov> Date: 16 May 91 13:54:34 GMT References: <1991May10.013347.8621@athena.mit.edu> <1991May10.210452.28889@ux1.cso.uiuc.edu> <1344@VAX1.CC.UAKRON.EDU> Sender: shirley@gothamcity.jsc.nasa.gov (Bill Shirley) Distribution: usa Organization: Software Technology Branch - NASA/JSC Lines: 18 In article <1344@VAX1.CC.UAKRON.EDU>, r3jjs@VAX1.CC.UAKRON.EDU (Jeremy J Starcher) writes: |> In article <1991May10.210452.28889@ux1.cso.uiuc.edu> phil@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.