From: Rich Felker Date: Thu, 19 Jan 2012 04:28:48 +0000 (-0500) Subject: alias basename to glibc name for it, to meet abi goals X-Git-Tag: v0.8.4~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07065210cae8ae40fceeee4febf338e1f1aecd0c;p=oweals%2Fmusl.git 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. --- 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 #include +#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);