Removes wcswcs from bionic for LP64.
Bug: 13935372 Change-Id: I0deb15e769da4fa81bb65a87f3c86db5163a5796
This commit is contained in:
@@ -481,7 +481,6 @@ libc_upstream_openbsd_src_files := \
|
||||
upstream-openbsd/lib/libc/string/strtok.c \
|
||||
upstream-openbsd/lib/libc/string/wcslcpy.c \
|
||||
upstream-openbsd/lib/libc/string/wcsstr.c \
|
||||
upstream-openbsd/lib/libc/string/wcswcs.c \
|
||||
upstream-openbsd/lib/libc/string/wcswidth.c \
|
||||
|
||||
libc_arch_static_src_files := \
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
|
||||
// These were accidentally declared in <unistd.h> because we stupidly used to inline
|
||||
// getpagesize() and __getpageshift(). Needed for backwards compatibility with old NDK apps.
|
||||
@@ -221,4 +222,8 @@ extern "C" int tkill(pid_t tid, int sig) {
|
||||
return syscall(__NR_tkill, tid, sig);
|
||||
}
|
||||
|
||||
extern "C" wchar_t* wcswcs(wchar_t* haystack, wchar_t* needle) {
|
||||
return wcsstr(haystack, needle);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -138,7 +138,6 @@ extern long long wcstoll(const wchar_t*, wchar_t**, int);
|
||||
extern long double wcstold(const wchar_t*, wchar_t**);
|
||||
extern unsigned long wcstoul(const wchar_t*, wchar_t**, int);
|
||||
extern unsigned long long wcstoull(const wchar_t*, wchar_t**, int);
|
||||
extern wchar_t *wcswcs(const wchar_t *, const wchar_t *);
|
||||
extern int wcswidth(const wchar_t *, size_t);
|
||||
extern size_t wcsxfrm(wchar_t *, const wchar_t *, size_t);
|
||||
extern int wctob(wint_t);
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
/* $OpenBSD: wcswcs.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */
|
||||
/* $NetBSD: wcswcs.c,v 1.1 2003/03/05 20:18:17 tshiozak Exp $ */
|
||||
|
||||
#define WCSWCS
|
||||
#include "wcsstr.c"
|
||||
Reference in New Issue
Block a user