From owner-freebsd-arch@FreeBSD.ORG Thu May 8 08:35:39 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 71E6537B401; Thu, 8 May 2003 08:35:39 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5594A43F3F; Thu, 8 May 2003 08:35:38 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h48FZVTl019822; Thu, 8 May 2003 09:35:32 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 08 May 2003 09:35:13 -0600 (MDT) Message-Id: <20030508.093513.17267435.imp@bsdimp.com> To: hch@infradead.org From: "M. Warner Losh" In-Reply-To: <20030507143611.A23293@infradead.org> References: <20030506162352.GC78486@madman.celabo.org> <20030507093240.GA15754@HAL9000.homeunix.com> <20030507143611.A23293@infradead.org> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: nectar@freebsd.org 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: Thu, 08 May 2003 15:35:39 -0000 In message: <20030507143611.A23293@infradead.org> Christoph Hellwig writes: : On Wed, May 07, 2003 at 02:32:40AM -0700, David Schultz wrote: : > > strlcpy(struct string *a, struct string *b) : > > { : > > if (a->size == 0) { : > > b->size = 0; : > > return; : > > } : > > /* really copy the string */ : > > } : > : > Hmm...but that program is broken. If someone overrides a symbol : > reserved by the C standard, he deserves whatever he gets. It is : > not unreasonable to expect applications to avoid using reserved : > symbols for thier own purposes. : : strlcpy is not in any standard.. str* symbols are reserved to the implementation symbols. Any program that defines them is non-conforming to the standard. Geeze people, can't you read the whole thread before posting the same old crap? Warner