Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 20:09:44 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        "Jacques A. Vidrine" <nectar@FreeBSD.org>, freebsd-arch@FreeBSD.org
Subject:   Re: `Hiding' libc symbols
Message-ID:  <20030501160944.GC55078@nagual.pp.ru>
In-Reply-To: <20030501160119.GB35367@madman.celabo.org>
References:  <20030430153645.GL39658@survey.codeburst.net> <20030430164135.GB26508@madman.celabo.org> <20030501140255.GB1869@survey.codeburst.net> <20030501143032.GA34163@madman.celabo.org> <20030501144600.GC1869@survey.codeburst.net> <20030501145345.GA34884@madman.celabo.org> <20030501151458.GA54182@nagual.pp.ru> <20030501152251.GB34992@madman.celabo.org> <20030501155342.GA55078@nagual.pp.ru> <20030501160119.GB35367@madman.celabo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 01, 2003 at 11:01:19 -0500, Jacques A. Vidrine wrote:
> No, you are mistaken.
> 
> namespace.h
> 
>      39 /*
>      40  * ISO C (C90) section.  Most names in libc aren't in ISO C, so they
>      41  * should be here.  Most aren't here...
>      42  */
>      43 #define         err                             _err
>      44 #define         warn                            _warn
>      45 #define         nsdispatch                      _nsdispatch
>      46 #define         strlcat                         _strlcat
>      47 #define         strlcpy                         _strlcpy
> 
> The comment dates back to 2001.

And you are mistaken to add str* functions here. While the comment is true
for err, warn etc. it is not true for standard-reserved str* prefix.

> That is your opinion, and one I do not share.  I did not make the
> commit for no purpose.

I understand your purpose, but point that 1) this way not works when 
multiply libraries linked and 2) it provokes str* standard reserved prefix 
incorrectly taken by applications.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030501160944.GC55078>