summaryrefslogtreecommitdiffstats
path: root/libc/include/string.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-07-09 10:09:04 -0700
committerDan Albert <danalbert@google.com>2014-07-09 15:41:53 -0700
commite087eac404b0e30de427392065e2750acf92bd4a (patch)
treec547e35ffc82ee9afd441d2e3739a87de73103fd /libc/include/string.h
parent6cdd0cfd2f279dfb20b9f7cccc963eb9ee91c666 (diff)
downloadbionic-e087eac404b0e30de427392065e2750acf92bd4a.zip
bionic-e087eac404b0e30de427392065e2750acf92bd4a.tar.gz
bionic-e087eac404b0e30de427392065e2750acf92bd4a.tar.bz2
Add locale aware APIs.
Since we only support the C locale, we can just forward all of these to their non-locale equivalents for correct behavior. Change-Id: Ib7be71b7f636309c0cc3be1096a4c1f693f04fbb
Diffstat (limited to 'libc/include/string.h')
-rw-r--r--libc/include/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/include/string.h b/libc/include/string.h
index 7727c0e..af1c0c1 100644
--- a/libc/include/string.h
+++ b/libc/include/string.h
@@ -31,6 +31,7 @@
#include <sys/cdefs.h>
#include <stddef.h>
#include <malloc.h>
+#include <xlocale.h>
__BEGIN_DECLS
@@ -88,6 +89,9 @@ extern char* strsignal(int sig);
extern int strcoll(const char *, const char *) __purefunc;
extern size_t strxfrm(char* __restrict, const char* __restrict, size_t);
+extern int strcoll_l(const char *, const char *, locale_t) __purefunc;
+extern size_t strxfrm_l(char* __restrict, const char* __restrict, size_t, locale_t);
+
#if defined(__BIONIC_FORTIFY)
__errordecl(__memcpy_dest_size_error, "memcpy: prevented write past end of buffer");