funny strlen defines in sys/alpha/alpha/alpha-gdbstub.c

2001-07-02 Thread Giorgos Keramidas
Close to the top of sys/alpha/alpha/alpha-gdbstub.c i found out this, as i was randomly browsing the kernel sources today: 1 /* $FreeBSD: src/sys/alpha/alpha/alpha-gdbstub.c,v 1.11 2001/03/28 01:54:05 jhb Exp $ */ ... 130 #define strlen gdb_strlen 131 #define strcpy

Re: funny strlen defines in sys/alpha/alpha/alpha-gdbstub.c

2001-07-02 Thread Peter Jeremy
On 2001-Jul-02 11:34:25 +0300, Giorgos Keramidas [EMAIL PROTECTED] 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?

Re: funny strlen defines in sys/alpha/alpha/alpha-gdbstub.c

2001-07-02 Thread Giorgos Keramidas
On Tue, Jul 03, 2001 at 09:04:23AM +1000, Peter Jeremy wrote: 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