From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Andrew Cagney Cc: Mark Kettenis , gdb-patches@sources.redhat.com, jimb@cygnus.com, ezannoni@cygnus.com Subject: Re: [PATCH, RFA] Fix basename bug in symtab.c Date: Mon, 14 May 2001 23:19:00 -0000 Message-id: References: <3B0039B5.7060704@cygnus.com> X-SW-Source: 2001-05/msg00324.html On Mon, 14 May 2001, Andrew Cagney wrote: > Just to be clear on one thing, the bug occures on FreeBSD. It isn't a > FreeBSD bug :-). To quote the opengroup standard: > > > #include > > char *basename(char *path); > > ... > > > The basename() function may modify the string pointed to by path, > > and may return a pointer to static storage that may then be > > overwritten by a subsequent call to basename(). > > > > This interface need not be reentrant. Where can I see this standard?