Date: Tue, 03 Jul 2001 09:04:23 +1000 From: Peter Jeremy <peter.jeremy@alcatel.com.au> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: current@FreeBSD.ORG Subject: Re: funny strlen defines in sys/alpha/alpha/alpha-gdbstub.c Message-ID: <20010703090423.V506@gsmx07.alcatel.com.au> In-Reply-To: <20010702113423.B7023@hades.hell.gr>; from keramida@ceid.upatras.gr on Mon, Jul 02, 2001 at 11:34:25AM %2B0300 References: <20010702113423.B7023@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-Jul-02 11:34:25 +0300, Giorgos Keramidas <keramida@ceid.upatras.gr> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010703090423.V506>