summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-04-18 22:22:20 +0000
committerjoerg <joerg@NetBSD.org>2013-04-18 22:22:20 +0000
commit58a085140cefc241d8da6d36ecdea47bbddd26e3 (patch)
tree44bc5c7aebbe364e9deb5e7a061c29ceacb788a1 /include/stdlib.h
parent65ae56d91290a489596b5f4cfae368466cc81562 (diff)
Add mblen_l, mbstowcs_l, wctomb_l, mbtowc_l and wcstombs_l.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 42bfe28dda8..03831b668b5 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.102 2013/04/18 21:54:10 joerg Exp $ */
+/* $NetBSD: stdlib.h,v 1.103 2013/04/18 22:22:20 joerg Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -351,7 +351,17 @@ unsigned long long int
# if defined(_NETBSD_SOURCE)
quad_t strtoq_l(const char * __restrict, char ** __restrict, int, locale_t);
u_quad_t strtouq_l(const char * __restrict, char ** __restrict, int, locale_t);
-# endif
+
+int mblen_l(const char *, size_t, locale_t);
+size_t mbstowcs_l(wchar_t * __restrict, const char * __restrict, size_t,
+ locale_t);
+int wctomb_l(char *, wchar_t, locale_t);
+int mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t,
+ locale_t);
+size_t wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t,
+ locale_t);
+
+# endif /* _NETBSD_SOURCE */
#endif /* _POSIX_C_SOURCE >= 200809 || _NETBSD_SOURCE */
__END_DECLS