From e2696c3f513084d39f45a009eb529ede024b8fa7 Mon Sep 17 00:00:00 2001 From: David O'Brien Date: Fri, 20 Jul 2001 02:22:17 +0000 Subject: [PATCH] 2001-07-19 David O'Brien * lbasename.c: New file. * libiberty.h: Add lbasename. Approved by: Philip Blundell * emultempl/elf32.em: Do not assuming that contents of the buffer returned from basename function will remain unchanged accross other function calls. Approved by: Philip Blundell --- include/ChangeLog | 4 ++++ include/libiberty.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/ChangeLog b/include/ChangeLog index 10bb1b2a8..ad96520e2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2001-07-19 David O'Brien + + * libiberty.h: Add lbasename. + 2001-06-07 Alan Modra * Many files: Update copyright notices. diff --git a/include/libiberty.h b/include/libiberty.h index 1bc2b7d40..d31ac777d 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -81,6 +81,10 @@ extern char *basename (); # endif #endif +/* A well-defined basename () that is always compiled in. */ + +extern char *lbasename PARAMS ((const char *)); + /* Concatenate an arbitrary number of strings, up to (char *) NULL. Allocates memory using xmalloc. */