diff options
author | David O'Brien <obrien@FreeBSD.org> | 2001-07-20 02:22:17 +0000 |
---|---|---|
committer | David O'Brien <obrien@FreeBSD.org> | 2001-07-20 02:22:17 +0000 |
commit | e2696c3f513084d39f45a009eb529ede024b8fa7 (patch) | |
tree | 647220248a71fec686a92320f1b7ae72de2f52c1 | |
parent | 05a1135601bc97e99e9aaba9ce119d4984df8465 (diff) | |
download | newlib-github/binutils-2_11-branch.zip newlib-github/binutils-2_11-branch.tar.gz newlib-github/binutils-2_11-branch.tar.bz2 |
2001-07-19 David O'Brien <obrien@FreeBSD.org>github/binutils-2_11-branchbinutils-2_11-branch
* lbasename.c: New file.
* libiberty.h: Add lbasename.
Approved by: Philip Blundell <philb@gnu.org>
<E15K1Xn-00032C-00@kings-cross.london.uk.eu.org>
* 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 <philb@gnu.org>
<E15MO4s-00017V-00@kings-cross.london.uk.eu.org>
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 10bb1b2..ad96520 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2001-07-19 David O'Brien <obrien@FreeBSD.org> + + * libiberty.h: Add lbasename. + 2001-06-07 Alan Modra <amodra@bigpond.net.au> * Many files: Update copyright notices. diff --git a/include/libiberty.h b/include/libiberty.h index 1bc2b7d..d31ac77 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. */ |