about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-01-18 23:28:48 -0500
committerRich Felker <dalias@aerifal.cx>2012-01-18 23:28:48 -0500
commit07065210cae8ae40fceeee4febf338e1f1aecd0c (patch)
tree23e7ecbf3001ada9c497b9c8cb361a765307b331 /src
parent2adf2fb372745a406544188029d3f769f71a9f2c (diff)
downloadmusl-07065210cae8ae40fceeee4febf338e1f1aecd0c.tar.gz
musl-07065210cae8ae40fceeee4febf338e1f1aecd0c.tar.xz
musl-07065210cae8ae40fceeee4febf338e1f1aecd0c.zip
alias basename to glibc name for it, to meet abi goals
note that regardless of the name used, basename is always conformant.
it never takes on the bogus gnu behavior, unlike glibc where basename
is nonconformant when declared manually without including libgen.h.
Diffstat (limited to 'src')
-rw-r--r--src/misc/basename.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc/basename.c b/src/misc/basename.c
index c87e00cd..cc4f778c 100644
--- a/src/misc/basename.c
+++ b/src/misc/basename.c
@@ -1,5 +1,6 @@
 #include <string.h>
 #include <libgen.h>
+#include "libc.h"
 
 char *basename(char *s)
 {
@@ -10,3 +11,5 @@ char *basename(char *s)
 	for (; i&&s[i-1]!='/'; i--);
 	return s+i;
 }
+
+weak_alias(basename, __xpg_basename);