From owner-freebsd-current Mon Jul 2 16: 6:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 59E9C37B406 for ; Mon, 2 Jul 2001 16:06:15 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id JAA24721; Tue, 3 Jul 2001 09:04:28 +1000 (EST) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37641) with ESMTP id <01K5HLV8RREOVFAEWZ@cim.alcatel.com.au>; Tue, 3 Jul 2001 09:04:05 +1000 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id f62N4N221578; Tue, 03 Jul 2001 09:04:23 +1000 (EST envelope-from jeremyp) Content-return: prohibited Date: Tue, 03 Jul 2001 09:04:23 +1000 From: Peter Jeremy Subject: Re: funny strlen defines in sys/alpha/alpha/alpha-gdbstub.c In-reply-to: <20010702113423.B7023@hades.hell.gr>; from keramida@ceid.upatras.gr on Mon, Jul 02, 2001 at 11:34:25AM +0300 To: Giorgos Keramidas Cc: current@FreeBSD.ORG Mail-Followup-To: Giorgos Keramidas , current@FreeBSD.ORG Message-id: <20010703090423.V506@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010702113423.B7023@hades.hell.gr> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2001-Jul-02 11:34:25 +0300, Giorgos Keramidas wrote: > 130 #define strlen gdb_strlen > 131 #define strcpy gdb_strcpy > >Is it really necessary to do this funny thing with the #defines? I >mean, why not replace the calls with gdb_XXX() ourselves and be done >with it? Alternatively, given the XXX comment, why not delete the local copies of str{cpy,len}() and just usr the library versions? The original reason appears to be to avoid the possibility that str{cpy,len}() are not re-entrant. The FreeBSD ones _are_ re-entrant and it doesn't seem likely that we will re-write them not to be re-entrant. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message