This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH, RFA] Fix basename bug in symtab.c
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [PATCH, RFA] Fix basename bug in symtab.c
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Tue, 15 May 2001 09:21:04 +0300 (IDT)
- cc: Mark Kettenis <kettenis at wins dot uva dot nl>, gdb-patches at sources dot redhat dot com, jimb at cygnus dot com, ezannoni at cygnus dot com
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 <libgen.h>
> > 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?