From owner-freebsd-arch@FreeBSD.ORG Wed May 7 06:42:00 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 067C637B404; Wed, 7 May 2003 06:42:00 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CAE743F85; Wed, 7 May 2003 06:41:58 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h47DftE02554; Wed, 7 May 2003 15:41:55 +0200 (MEST) Date: Wed, 7 May 2003 15:41:55 +0200 (CEST) From: Harti Brandt To: Christoph Hellwig In-Reply-To: <20030507143611.A23293@infradead.org> Message-ID: <20030507154105.A3282@beagle.fokus.fraunhofer.de> References: <20030501182820.GA53641@madman.celabo.org> <20030505110601.H53365@beagle.fokus.fraunhofer.de> <3EB7CC73.9C61C27E@mindspring.com> <20030506152605.GE77708@madman.celabo.org> <20030506162352.GC78486@madman.celabo.org> <20030507143611.A23293@infradead.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Jacques A. Vidrine" cc: freebsd-arch@FreeBSD.org 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: Wed, 07 May 2003 13:42:00 -0000 On Wed, 7 May 2003, Christoph Hellwig wrote: CH>On Wed, May 07, 2003 at 02:32:40AM -0700, David Schultz wrote: CH>> > strlcpy(struct string *a, struct string *b) CH>> > { CH>> > if (a->size == 0) { CH>> > b->size = 0; CH>> > return; CH>> > } CH>> > /* really copy the string */ CH>> > } CH>> CH>> Hmm...but that program is broken. If someone overrides a symbol CH>> reserved by the C standard, he deserves whatever he gets. It is CH>> not unreasonable to expect applications to avoid using reserved CH>> symbols for thier own purposes. CH> CH>strlcpy is not in any standard.. It is in ANSI's standard namespace... harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org