提交 337e3c48 编写于 作者: A Al Viro 提交者: Linus Torvalds

provide out-of-line strcat() for m68k

Whether we sidestep it in init/main.c or not, such situations
will arise again; compiler does generate calls of strcat()
on optimizations, so we really ought to have an out-of-line
version...
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8c5330a5
...@@ -15,6 +15,12 @@ char *strcpy(char *dest, const char *src) ...@@ -15,6 +15,12 @@ char *strcpy(char *dest, const char *src)
} }
EXPORT_SYMBOL(strcpy); EXPORT_SYMBOL(strcpy);
char *strcat(char *dest, const char *src)
{
return __kernel_strcpy(dest + __kernel_strlen(dest), src);
}
EXPORT_SYMBOL(strcat);
void *memset(void *s, int c, size_t count) void *memset(void *s, int c, size_t count)
{ {
void *xs = s; void *xs = s;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册