From owner-freebsd-arch@FreeBSD.ORG Thu May 1 09:25:31 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E16FB37B401; Thu, 1 May 2003 09:25:31 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BF1943FB1; Thu, 1 May 2003 09:25:30 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.9/8.12.9) with ESMTP id h41GPTnd056308; Thu, 1 May 2003 20:25:29 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.9/8.12.9/Submit) id h41GPT88056307; Thu, 1 May 2003 20:25:29 +0400 (MSD) Date: Thu, 1 May 2003 20:25:29 +0400 From: "Andrey A. Chernov" To: "Jacques A. Vidrine" , freebsd-arch@freebsd.org Message-ID: <20030501162529.GA56264@nagual.pp.ru> References: <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> <20030501160944.GC55078@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030501160944.GC55078@nagual.pp.ru> User-Agent: Mutt/1.5.4i Subject: Re: `Hiding' libc symbols X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 16:25:32 -0000 On Thu, May 01, 2003 at 20:09:44 +0400, Andrey A. Chernov wrote: > 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. Just to note: we already have this precedent happens with strcasestr() function, not covered by standards. Some ports define their own strcasestr(). We decide to fix ports instead of libc hacking. And now we have two different ways of handling that case, one for strcasestr() and another for strlcat(). Where is logic?