From 8356ff4a52a5df7e5e84ac13f7dad7c29e0bda9c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 3 Jan 2006 14:44:12 +0000 Subject: Add more hidden prototypes --- include/libc-internal.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'include/libc-internal.h') diff --git a/include/libc-internal.h b/include/libc-internal.h index d669d93f2..06e55fd28 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -194,6 +194,10 @@ # endif # define __need_size_t +# ifdef __UCLIBC_HAS_WCHAR__ +# define __need_wchar_t +# define __need_wint_t +# endif # include # include @@ -243,11 +247,35 @@ extern int __strncmp (__const char *__s1, __const char *__s2, size_t __n) attrib extern char *__strdup (__const char *__s) attribute_hidden; extern int __strcasecmp (__const char *__s1, __const char *__s2) attribute_hidden; extern int __strncasecmp (__const char *__s1, __const char *__s2, size_t __n) attribute_hidden; +extern void *__rawmemchr (__const void *__s, int __c) __THROW __attribute_pure__ __nonnull ((1)) attribute_hidden; +extern size_t __strspn (__const char *__s, __const char *__accept) + __THROW __attribute_pure__ __nonnull ((1, 2)) attribute_hidden; +extern char *__strpbrk (__const char *__s, __const char *__accept) + __THROW __attribute_pure__ __nonnull ((1, 2)) attribute_hidden; +extern size_t __strnlen (__const char *__string, size_t __maxlen) + __THROW __attribute_pure__ __nonnull ((1)) attribute_hidden; +extern char *__strtok_r (char *__restrict __s, __const char *__restrict __delim, + char **__restrict __save_ptr) __THROW __nonnull ((2, 3)) attribute_hidden; /* sources are built w/ _GNU_SOURCE, this gets undefined */ extern int __xpg_strerror_r_internal (int __errnum, char *__buf, size_t __buflen) attribute_hidden; extern char *__glibc_strerror_r_internal (int __errnum, char *__buf, size_t __buflen) attribute_hidden; +/* ctype.h */ +extern int __tolower (int __c) __THROW attribute_hidden; + +#ifdef __UCLIBC_HAS_WCHAR__ +/* wchar.h */ +extern size_t __wcslen (__const wchar_t *__s) __THROW __attribute_pure__ attribute_hidden; +extern wchar_t *__wcscpy (wchar_t *__restrict __dest, __const wchar_t *__restrict __src) __THROW attribute_hidden; +extern size_t __wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept) + __THROW __attribute_pure__ attribute_hidden; +extern wchar_t *__wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept) + __THROW __attribute_pure__ attribute_hidden; +/* wctype.h */ +extern wint_t __towlower (wint_t __wc) __THROW attribute_hidden; +#endif + /* #include */ extern ssize_t __read(int __fd, void *__buf, size_t __nbytes) attribute_hidden; extern ssize_t __write(int __fd, __const void *__buf, size_t __n) attribute_hidden; -- cgit v1.2.3