diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-05-15 22:29:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-05-15 22:29:38 +0000 |
commit | 859ad3fd43b3b8289799fc07b91f705e3d60625b (patch) | |
tree | 01cc41843eee0eade93009f1a1ec1031e4dae81c /lib/libc/arch/i386/string | |
parent | 1750c6aec5fb331bfdc2147cc368f7b3925351f2 (diff) |
Make index/rindex weak aliases of strchr/strrchr since they are not
part of the ISO C standard and have also been dropped from POSIX.
OK guenther@ kettenis@
Diffstat (limited to 'lib/libc/arch/i386/string')
-rw-r--r-- | lib/libc/arch/i386/string/strchr.S | 4 | ||||
-rw-r--r-- | lib/libc/arch/i386/string/strrchr.S | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arch/i386/string/strchr.S b/lib/libc/arch/i386/string/strchr.S index 6d36a589d19..f8cd8e6589a 100644 --- a/lib/libc/arch/i386/string/strchr.S +++ b/lib/libc/arch/i386/string/strchr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: strchr.S,v 1.5 2015/05/14 21:40:37 kettenis Exp $ */ +/* $OpenBSD: strchr.S,v 1.6 2015/05/15 22:29:37 millert Exp $ */ /* * Written by J.T. Conklin <jtc@netbsd.org>. * Public domain. @@ -6,7 +6,7 @@ #include <machine/asm.h> -STRONG_ALIAS(index, strchr) +WEAK_ALIAS(index, strchr) ENTRY(strchr) movl 4(%esp),%eax diff --git a/lib/libc/arch/i386/string/strrchr.S b/lib/libc/arch/i386/string/strrchr.S index 8507e6ce43c..738c369b378 100644 --- a/lib/libc/arch/i386/string/strrchr.S +++ b/lib/libc/arch/i386/string/strrchr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: strrchr.S,v 1.5 2015/05/14 21:40:37 kettenis Exp $ */ +/* $OpenBSD: strrchr.S,v 1.6 2015/05/15 22:29:37 millert Exp $ */ /* * Written by J.T. Conklin <jtc@netbsd.org>. * Public domain. @@ -6,7 +6,7 @@ #include <machine/asm.h> -STRONG_ALIAS(rindex, strrchr) +WEAK_ALIAS(rindex, strrchr) ENTRY(strrchr) pushl %ebx |