diff options
author | 2015-05-15 22:29:37 +0000 | |
---|---|---|
committer | 2015-05-15 22:29:37 +0000 | |
commit | cb39b41371628601fbe4c618205356d538b9d08a (patch) | |
tree | 4bfaa7404c3e1cc94071c2f40996135642757ced /lib/libc/arch/mips64/string | |
parent | add missing placeholder so that the "UNSIGNED PACKAGES: " line actually (diff) | |
download | wireguard-openbsd-cb39b41371628601fbe4c618205356d538b9d08a.tar.xz wireguard-openbsd-cb39b41371628601fbe4c618205356d538b9d08a.zip |
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/mips64/string')
-rw-r--r-- | lib/libc/arch/mips64/string/strchr.S | 5 | ||||
-rw-r--r-- | lib/libc/arch/mips64/string/strrchr.S | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/arch/mips64/string/strchr.S b/lib/libc/arch/mips64/string/strchr.S index 7add0c9218f..a5a12c53940 100644 --- a/lib/libc/arch/mips64/string/strchr.S +++ b/lib/libc/arch/mips64/string/strchr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: strchr.S,v 1.1 2014/11/30 19:43:56 deraadt Exp $ */ +/* $OpenBSD: strchr.S,v 1.2 2015/05/15 22:29:37 millert Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -33,8 +33,9 @@ #include <machine/asm.h> +WEAK_ALIAS(index, strchr) + LEAF(strchr, 0) -ALEAF(index) .set reorder 0: lbu a2, 0(a0) # get a byte diff --git a/lib/libc/arch/mips64/string/strrchr.S b/lib/libc/arch/mips64/string/strrchr.S index 7797d3af0ad..a7f5b74c320 100644 --- a/lib/libc/arch/mips64/string/strrchr.S +++ b/lib/libc/arch/mips64/string/strrchr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: strrchr.S,v 1.1 2014/11/30 19:43:56 deraadt Exp $ */ +/* $OpenBSD: strrchr.S,v 1.2 2015/05/15 22:29:37 millert Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -33,8 +33,9 @@ #include <machine/asm.h> +WEAK_ALIAS(rindex, strrchr) + LEAF(strrchr, 0) -ALEAF(rindex) .set reorder move v0, zero # default if not found 1: |