Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2000 17:10:25 +0800
From:      "Lin Gu" <lingu@fudan.edu>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   cannot hard link point to directory?
Message-ID:  <08da01bf8e5e$5f770990$19b769a2@shawshank>
References:  <20000313145201.H34294@freebsd1.cimlogic.com.au> <20000312230740.A8720@dragon.nuxi.com> <20000313181222.L34294@freebsd1.cimlogic.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm confused why hard link cannot point to directory. It can just point to
the inode of the directory file, i suppose.

thanks for any hints in advance,

lin

----- Original Message -----
From: "John Birrell" <jb@cimlogic.com.au>
To: "David O'Brien" <obrien@FreeBSD.ORG>
Cc: "John Birrell" <jb@cimlogic.com.au>; <current@FreeBSD.ORG>
Sent: Monday, March 13, 2000 3:12 PM
Subject: Re: Weak symbols in libc_r broken?


On Sun, Mar 12, 2000 at 11:07:40PM -0800, David O'Brien wrote:
> On Mon, Mar 13, 2000 at 02:52:02PM +1100, John Birrell wrote:
> > Is it just me, or are the weak symbols in libc_r confusing the linker?
>
> Not just you.  Jason and Mike Smith brought this to my attention on
> Friday.  I found that if one takes a fresh -CURRENT and then:
>
>     cd /usr/src/lib/libc_r
>     cvs -q up -D 1/27/2000
>     make all install
>
> the susp.c code from the A&W Ptheads Programming book
> (http://www.aw.com/cseng/titles/0-201-63392-2/code/) would then work with
> compiled with "-static -pthread".

I don't think it is the linker's fault. To me it makes no sense to
have a weak symbol and a strong symbol of the same name in the same
library.

I deleted the weak definitions in the _THREAD_SAFE PRSYSCALL in
lib/libc/i386/SYS.h and the problem goes away. I don't understand why
Jason needed to add them in the first place.

--
John Birrell - jb@cimlogic.com.au; jb@freebsd.org
http://www.cimlogic.com.au/
               john.birrell@ca.com john.birrell@opendirectory.com.au


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




________________

Email Forwarding Service Brought To You By: http://www.bn3.com.

We can let you become anybody@anyplace.com. FREE, In 5 minutes!

-----------------------------------------------
搭乘主页大巴,十分钟立"页" 安家!
还有机会赢取大奖现房一套或无尽上等白米,
更有Swatch与Nike任你拿!马上动手吧!
邀请十个朋友参加此活动就有机会获得西藏神秘之旅
凡参与者均获ChinaRen特酷T恤衫一件!
http://www.chinaren.com/marketing/bus/index.htm



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?08da01bf8e5e$5f770990$19b769a2>