Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!r3jjs From: r3jjs@VAX1.CC.UAKRON.EDU (Jeremy J Starcher) Newsgroups: comp.unix.programmer Subject: Re: hard links: how to tell with system call under BSD4.3? Message-ID: <1344@VAX1.CC.UAKRON.EDU> Date: 13 May 91 02:21:53 GMT References: <1991May10.013347.8621@athena.mit.edu> <1991May10.210452.28889@ux1.cso.uiuc.edu> Reply-To: r3jjs@VAX1.CC.UAKRON.EDU (Jeremy J Starcher) Distribution: usa Organization: U of Akron Computer Center, Ohio Lines: 16 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 and >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 (..). I can tell how many branches there are by looking at the hardlink number and subracting two. -- --------------------------+--------------------------------------------------- Jeremy J Starcher ! No programmer programs in LOGO after reaching r3jjs@vax1.cc.uakron.edu ! age 14... r3jjs@akronvm.bitnet !