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 (__wcstol_l
)
19 libc_hidden_proto (__wcstoul_l
)
20 libc_hidden_proto (__wcstoll_l
)
21 libc_hidden_proto (__wcstoull_l
)
22 libc_hidden_proto (__wcstod_l
)
23 libc_hidden_proto (__wcstof_l
)
24 libc_hidden_proto (__wcstold_l
)
25 libc_hidden_proto (__wcsftime_l
)
28 extern double __wcstod_internal (__const
wchar_t *__restrict __nptr
,
29 wchar_t **__restrict __endptr
, int __group
)
31 extern float __wcstof_internal (__const
wchar_t *__restrict __nptr
,
32 wchar_t **__restrict __endptr
, int __group
)
34 extern long double __wcstold_internal (__const
wchar_t *__restrict __nptr
,
35 wchar_t **__restrict __endptr
,
37 extern long int __wcstol_internal (__const
wchar_t *__restrict __nptr
,
38 wchar_t **__restrict __endptr
,
39 int __base
, int __group
) __THROW
;
40 extern unsigned long int __wcstoul_internal (__const
wchar_t *__restrict __npt
,
41 wchar_t **__restrict __endptr
,
42 int __base
, int __group
) __THROW
;
44 extern long long int __wcstoll_internal (__const
wchar_t *__restrict __nptr
,
45 wchar_t **__restrict __endptr
,
46 int __base
, int __group
) __THROW
;
48 extern unsigned long long int __wcstoull_internal (__const
wchar_t *
54 libc_hidden_proto (__wcstof_internal
)
55 libc_hidden_proto (__wcstod_internal
)
56 libc_hidden_proto (__wcstold_internal
)
57 libc_hidden_proto (__wcstol_internal
)
58 libc_hidden_proto (__wcstoll_internal
)
59 libc_hidden_proto (__wcstoul_internal
)
60 libc_hidden_proto (__wcstoull_internal
)
61 libc_hidden_proto (wcstof
)
62 libc_hidden_proto (wcstod
)
63 libc_hidden_proto (wcstold
)
64 libc_hidden_proto (wcstol
)
65 libc_hidden_proto (wcstoll
)
66 libc_hidden_proto (wcstoul
)
67 libc_hidden_proto (wcstoull
)
69 libc_hidden_proto (__wcscasecmp_l
)
70 libc_hidden_proto (__wcsncasecmp_l
)
72 libc_hidden_proto (__wcscoll_l
)
73 libc_hidden_proto (__wcsxfrm_l
)
75 libc_hidden_proto (fputws_unlocked
)
76 libc_hidden_proto (putwc_unlocked
)
77 libc_hidden_proto (putwc
)
79 libc_hidden_proto (vswscanf
)
81 libc_hidden_proto (mbrtowc
)
82 libc_hidden_proto (wcrtomb
)
83 libc_hidden_proto (wcscmp
)
84 libc_hidden_proto (wcsftime
)
85 libc_hidden_proto (wcsspn
)
86 libc_hidden_proto (wcschr
)
87 libc_hidden_proto (wcscoll
)
88 libc_hidden_proto (wcspbrk
)
90 libc_hidden_proto (wmemchr
)
91 libc_hidden_proto (wmemset
)
93 /* Now define the internal interfaces. */
94 extern int __wcscasecmp (__const
wchar_t *__s1
, __const
wchar_t *__s2
)
96 extern int __wcsncasecmp (__const
wchar_t *__s1
, __const
wchar_t *__s2
,
99 extern size_t __wcslen (__const
wchar_t *__s
) __attribute_pure__
;
100 extern size_t __wcsnlen (__const
wchar_t *__s
, size_t __maxlen
)
102 extern wchar_t *__wcscat (wchar_t *dest
, const wchar_t *src
);
103 extern wint_t __btowc (int __c
);
104 extern int __mbsinit (__const __mbstate_t
*__ps
);
105 extern size_t __mbrtowc (wchar_t *__restrict __pwc
,
106 __const
char *__restrict __s
, size_t __n
,
107 __mbstate_t
*__restrict __p
);
108 libc_hidden_proto (__mbrtowc
)
109 libc_hidden_proto (__mbrlen
)
110 extern size_t __wcrtomb (char *__restrict __s
, wchar_t __wc
,
111 __mbstate_t
*__restrict __ps
);
112 extern size_t __mbsrtowcs (wchar_t *__restrict __dst
,
113 __const
char **__restrict __src
,
114 size_t __len
, __mbstate_t
*__restrict __ps
);
115 extern size_t __wcsrtombs (char *__restrict __dst
,
116 __const
wchar_t **__restrict __src
,
117 size_t __len
, __mbstate_t
*__restrict __ps
);
118 extern size_t __mbsnrtowcs (wchar_t *__restrict __dst
,
119 __const
char **__restrict __src
, size_t __nmc
,
120 size_t __len
, __mbstate_t
*__restrict __ps
);
121 extern size_t __wcsnrtombs (char *__restrict __dst
,
122 __const
wchar_t **__restrict __src
,
123 size_t __nwc
, size_t __len
,
124 __mbstate_t
*__restrict __ps
);
125 extern wchar_t *__wcsncpy (wchar_t *__restrict __dest
,
126 __const
wchar_t *__restrict __src
, size_t __n
);
127 extern wchar_t *__wcpcpy (wchar_t *__dest
, __const
wchar_t *__src
);
128 extern wchar_t *__wcpncpy (wchar_t *__dest
, __const
wchar_t *__src
,
130 extern wchar_t *__wmemcpy (wchar_t *__s1
, __const
wchar_t *s2
,
132 extern wchar_t *__wmempcpy (wchar_t *__restrict __s1
,
133 __const
wchar_t *__restrict __s2
,
135 extern wchar_t *__wmemmove (wchar_t *__s1
, __const
wchar_t *__s2
,
137 extern wchar_t *__wcschrnul (__const
wchar_t *__s
, wchar_t __wc
)
140 extern int __vfwscanf (__FILE
*__restrict __s
,
141 __const
wchar_t *__restrict __format
,
142 __gnuc_va_list __arg
)
143 /* __attribute__ ((__format__ (__wscanf__, 2, 0)) */;
144 extern int __vswprintf (wchar_t *__restrict __s
, size_t __n
,
145 __const
wchar_t *__restrict __format
,
146 __gnuc_va_list __arg
)
147 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
148 extern int __fwprintf (__FILE
*__restrict __s
,
149 __const
wchar_t *__restrict __format
, ...)
150 /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */;
151 extern int __vfwprintf (__FILE
*__restrict __s
,
152 __const
wchar_t *__restrict __format
,
153 __gnuc_va_list __arg
)
154 /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */;
156 extern int __vfwprintf_chk (FILE *__restrict __s
, int __flag
,
157 const wchar_t *__restrict __format
,
158 __gnuc_va_list __arg
)
159 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
160 extern int __vswprintf_chk (wchar_t *__restrict __s
, size_t __n
,
161 int __flag
, size_t __s_len
,
162 __const
wchar_t *__restrict __format
,
163 __gnuc_va_list __arg
)
164 /* __attribute__ ((__format__ (__wprintf__, 5, 0))) */;
165 libc_hidden_proto (__vfwprintf_chk
)
166 libc_hidden_proto (__vswprintf_chk
)
169 extern int __isoc99_fwscanf (__FILE
*__restrict __stream
,
170 __const
wchar_t *__restrict __format
, ...);
171 extern int __isoc99_wscanf (__const
wchar_t *__restrict __format
, ...);
172 extern int __isoc99_swscanf (__const
wchar_t *__restrict __s
,
173 __const
wchar_t *__restrict __format
, ...)
175 extern int __isoc99_vfwscanf (__FILE
*__restrict __s
,
176 __const
wchar_t *__restrict __format
,
177 __gnuc_va_list __arg
);
178 extern int __isoc99_vwscanf (__const
wchar_t *__restrict __format
,
179 __gnuc_va_list __arg
);
180 extern int __isoc99_vswscanf (__const
wchar_t *__restrict __s
,
181 __const
wchar_t *__restrict __format
,
182 __gnuc_va_list __arg
) __THROW
;
183 libc_hidden_proto (__isoc99_vswscanf
)
184 libc_hidden_proto (__isoc99_vfwscanf
)
186 /* Internal functions. */
187 extern size_t __mbsrtowcs_l (wchar_t *dst
, const char **src
, size_t len
,
188 mbstate_t *ps
, __locale_t l
) attribute_hidden
;
190 /* Special version. We know that all uses of mbsinit inside the libc
191 have a non-NULL parameter. And certainly we can access the
192 internals of the data structure directly. */
193 # define mbsinit(state) ((state)->__count == 0)
194 # define __mbsinit(state) ((state)->__count == 0)
199 /* Undefine all __need_* constants in case we are included to get those
200 constants but the whole file was already read. */
201 #undef __need_mbstate_t