2 #include <wcsmbs/wchar.h>
6 extern __typeof (wcscasecmp_l) __wcscasecmp_l;
7 extern __typeof (wcsncasecmp_l) __wcsncasecmp_l;
8 extern __typeof (wcscoll_l) __wcscoll_l;
9 extern __typeof (wcsxfrm_l) __wcsxfrm_l;
10 extern __typeof (wcstol_l) __wcstol_l;
11 extern __typeof (wcstoul_l) __wcstoul_l;
12 extern __typeof (wcstoll_l) __wcstoll_l;
13 extern __typeof (wcstoull_l) __wcstoull_l;
14 extern __typeof (wcstod_l) __wcstod_l;
15 extern __typeof (wcstof_l) __wcstof_l;
16 extern __typeof (wcstold_l) __wcstold_l;
17 extern __typeof (wcsftime_l) __wcsftime_l;
18 libc_hidden_proto (__wcsftime_l)
21 libc_hidden_proto (__wcstof_internal)
22 libc_hidden_proto (__wcstod_internal)
23 libc_hidden_proto (__wcstold_internal)
24 libc_hidden_proto (__wcstol_internal)
25 libc_hidden_proto (__wcstoll_internal)
26 libc_hidden_proto (__wcstoul_internal)
27 libc_hidden_proto (__wcstoull_internal)
29 libc_hidden_proto (__wcscasecmp_l)
30 libc_hidden_proto (__wcsncasecmp_l)
32 libc_hidden_proto (fputws_unlocked)
33 libc_hidden_proto (putwc_unlocked)
34 libc_hidden_proto (putwc)
36 libc_hidden_proto (vswscanf)
38 libc_hidden_proto (mbrtowc)
39 libc_hidden_proto (wcrtomb)
40 libc_hidden_proto (wcscmp)
41 libc_hidden_proto (wcsftime)
42 libc_hidden_proto (wcsspn)
43 libc_hidden_proto (wcschr)
44 libc_hidden_proto (wcscoll)
45 libc_hidden_proto (wcspbrk)
47 libc_hidden_proto (wmemchr)
48 libc_hidden_proto (wmemset)
50 /* Now define the internal interfaces. */
51 extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2)
53 extern int __wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
56 extern int __wcscoll (__const wchar_t *__s1, __const wchar_t *__s2);
57 extern size_t __wcslen (__const wchar_t *__s) __attribute_pure__;
58 extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen)
60 extern wchar_t *__wcscat (wchar_t *dest, const wchar_t *src);
61 extern wint_t __btowc (int __c);
62 extern int __mbsinit (__const __mbstate_t *__ps);
63 extern size_t __mbrtowc (wchar_t *__restrict __pwc,
64 __const char *__restrict __s, size_t __n,
65 __mbstate_t *__restrict __p);
66 libc_hidden_proto (__mbrtowc)
67 libc_hidden_proto (__mbrlen)
68 extern size_t __wcrtomb (char *__restrict __s, wchar_t __wc,
69 __mbstate_t *__restrict __ps);
70 extern size_t __mbsrtowcs (wchar_t *__restrict __dst,
71 __const char **__restrict __src,
72 size_t __len, __mbstate_t *__restrict __ps);
73 extern size_t __wcsrtombs (char *__restrict __dst,
74 __const wchar_t **__restrict __src,
75 size_t __len, __mbstate_t *__restrict __ps);
76 extern size_t __mbsnrtowcs (wchar_t *__restrict __dst,
77 __const char **__restrict __src, size_t __nmc,
78 size_t __len, __mbstate_t *__restrict __ps);
79 extern size_t __wcsnrtombs (char *__restrict __dst,
80 __const wchar_t **__restrict __src,
81 size_t __nwc, size_t __len,
82 __mbstate_t *__restrict __ps);
83 extern wchar_t *__wcpcpy (wchar_t *__dest, __const wchar_t *__src);
84 extern wchar_t *__wcpncpy (wchar_t *__dest, __const wchar_t *__src,
86 extern wchar_t *__wmemcpy (wchar_t *__s1, __const wchar_t *s2,
88 extern wchar_t *__wmempcpy (wchar_t *__restrict __s1,
89 __const wchar_t *__restrict __s2,
91 extern wchar_t *__wmemmove (wchar_t *__s1, __const wchar_t *__s2,
93 extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc)
96 extern int __vfwscanf (__FILE *__restrict __s,
97 __const wchar_t *__restrict __format,
99 /* __attribute__ ((__format__ (__wscanf__, 2, 0)) */;
100 extern int __vswprintf (wchar_t *__restrict __s, size_t __n,
101 __const wchar_t *__restrict __format,
102 __gnuc_va_list __arg)
103 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
104 extern int __fwprintf (__FILE *__restrict __s,
105 __const wchar_t *__restrict __format, ...)
106 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
107 extern int __vfwprintf (__FILE *__restrict __s,
108 __const wchar_t *__restrict __format,
109 __gnuc_va_list __arg)
110 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
113 /* Internal functions. */
114 extern size_t __mbsrtowcs_l (wchar_t *dst, const char **src, size_t len,
115 mbstate_t *ps, __locale_t l) attribute_hidden;
117 /* Special version. We know that all uses of mbsinit inside the libc
118 have a non-NULL parameter. And certainly we can access the
119 internals of the data structure directly. */
120 # define mbsinit(state) ((state)->__count == 0)
121 # define __mbsinit(state) ((state)->__count == 0)