diff --git a/lib/libc/arch/m68k/string/index.S b/lib/libc/arch/m68k/string/index.S index bb798b0ad317..8b46a76cdbdd 100644 --- a/lib/libc/arch/m68k/string/index.S +++ b/lib/libc/arch/m68k/string/index.S @@ -38,12 +38,16 @@ #if defined(LIBC_SCCS) && !defined(lint) .text /*.asciz "from: @(#)index.s 5.1 (Berkeley) 5/12/90"*/ - .asciz "$Id: index.S,v 1.1 1993/11/25 23:38:29 paulus Exp $" + .asciz "$Id: index.S,v 1.2 1993/12/08 21:01:56 mycroft Exp $" #endif /* LIBC_SCCS and not lint */ #include "DEFS.h" +#ifdef STRCHR +ENTRY(strchr) +#else ENTRY(index) +#endif movl sp@(4),a0 /* string */ movb sp@(11),d0 /* char to look for */ ixloop: diff --git a/lib/libc/arch/m68k/string/rindex.S b/lib/libc/arch/m68k/string/rindex.S index ac19c60b5db8..3bf39fffd41f 100644 --- a/lib/libc/arch/m68k/string/rindex.S +++ b/lib/libc/arch/m68k/string/rindex.S @@ -38,12 +38,16 @@ #if defined(LIBC_SCCS) && !defined(lint) .text /*.asciz "from: @(#)rindex.s 5.1 (Berkeley) 5/12/90"*/ - .asciz "$Id: rindex.S,v 1.1 1993/11/25 23:38:30 paulus Exp $" + .asciz "$Id: rindex.S,v 1.2 1993/12/08 21:01:58 mycroft Exp $" #endif /* LIBC_SCCS and not lint */ #include "DEFS.h" +#ifdef STRRCHR +ENTRY(strrchr) +#else ENTRY(rindex) +#endif movl sp@(4),a0 /* string */ movb sp@(11),d0 /* char to look for */ subl a1,a1 /* clear rindex pointer */ diff --git a/lib/libc/arch/m68k/string/strchr.S b/lib/libc/arch/m68k/string/strchr.S new file mode 100644 index 000000000000..e603668efe53 --- /dev/null +++ b/lib/libc/arch/m68k/string/strchr.S @@ -0,0 +1,2 @@ +#define STRCHR +#include "index.S" diff --git a/lib/libc/arch/m68k/string/strrchr.S b/lib/libc/arch/m68k/string/strrchr.S new file mode 100644 index 000000000000..f9deb5a826eb --- /dev/null +++ b/lib/libc/arch/m68k/string/strrchr.S @@ -0,0 +1,2 @@ +#define STRRCHR +#include "rindex.S"