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 (__wcscoll_l
)
33 libc_hidden_proto (__wcsxfrm_l
)
35 libc_hidden_proto (fputws_unlocked
)
36 libc_hidden_proto (putwc_unlocked
)
37 libc_hidden_proto (putwc
)
39 libc_hidden_proto (vswscanf
)
41 libc_hidden_proto (mbrtowc
)
42 libc_hidden_proto (wcrtomb
)
43 libc_hidden_proto (wcscmp
)
44 libc_hidden_proto (wcsftime
)
45 libc_hidden_proto (wcsspn
)
46 libc_hidden_proto (wcschr
)
47 libc_hidden_proto (wcscoll
)
48 libc_hidden_proto (wcspbrk
)
50 libc_hidden_proto (wmemchr
)
51 libc_hidden_proto (wmemset
)
53 /* Now define the internal interfaces. */
54 extern int __wcscasecmp (__const
wchar_t *__s1
, __const
wchar_t *__s2
)
56 extern int __wcsncasecmp (__const
wchar_t *__s1
, __const
wchar_t *__s2
,
59 extern int __wcscoll (__const
wchar_t *__s1
, __const
wchar_t *__s2
);
60 extern size_t __wcslen (__const
wchar_t *__s
) __attribute_pure__
;
61 extern size_t __wcsnlen (__const
wchar_t *__s
, size_t __maxlen
)
63 extern wchar_t *__wcscat (wchar_t *dest
, const wchar_t *src
);
64 extern wint_t __btowc (int __c
);
65 extern int __mbsinit (__const __mbstate_t
*__ps
);
66 extern size_t __mbrtowc (wchar_t *__restrict __pwc
,
67 __const
char *__restrict __s
, size_t __n
,
68 __mbstate_t
*__restrict __p
);
69 libc_hidden_proto (__mbrtowc
)
70 libc_hidden_proto (__mbrlen
)
71 extern size_t __wcrtomb (char *__restrict __s
, wchar_t __wc
,
72 __mbstate_t
*__restrict __ps
);
73 extern size_t __mbsrtowcs (wchar_t *__restrict __dst
,
74 __const
char **__restrict __src
,
75 size_t __len
, __mbstate_t
*__restrict __ps
);
76 extern size_t __wcsrtombs (char *__restrict __dst
,
77 __const
wchar_t **__restrict __src
,
78 size_t __len
, __mbstate_t
*__restrict __ps
);
79 extern size_t __mbsnrtowcs (wchar_t *__restrict __dst
,
80 __const
char **__restrict __src
, size_t __nmc
,
81 size_t __len
, __mbstate_t
*__restrict __ps
);
82 extern size_t __wcsnrtombs (char *__restrict __dst
,
83 __const
wchar_t **__restrict __src
,
84 size_t __nwc
, size_t __len
,
85 __mbstate_t
*__restrict __ps
);
86 extern wchar_t *__wcpcpy (wchar_t *__dest
, __const
wchar_t *__src
);
87 extern wchar_t *__wcpncpy (wchar_t *__dest
, __const
wchar_t *__src
,
89 extern wchar_t *__wmemcpy (wchar_t *__s1
, __const
wchar_t *s2
,
91 extern wchar_t *__wmempcpy (wchar_t *__restrict __s1
,
92 __const
wchar_t *__restrict __s2
,
94 extern wchar_t *__wmemmove (wchar_t *__s1
, __const
wchar_t *__s2
,
96 extern wchar_t *__wcschrnul (__const
wchar_t *__s
, wchar_t __wc
)
99 extern int __vfwscanf (__FILE
*__restrict __s
,
100 __const
wchar_t *__restrict __format
,
101 __gnuc_va_list __arg
)
102 /* __attribute__ ((__format__ (__wscanf__, 2, 0)) */;
103 extern int __vswprintf (wchar_t *__restrict __s
, size_t __n
,
104 __const
wchar_t *__restrict __format
,
105 __gnuc_va_list __arg
)
106 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
107 extern int __fwprintf (__FILE
*__restrict __s
,
108 __const
wchar_t *__restrict __format
, ...)
109 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
110 extern int __vfwprintf (__FILE
*__restrict __s
,
111 __const
wchar_t *__restrict __format
,
112 __gnuc_va_list __arg
)
113 /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
116 /* Internal functions. */
117 extern size_t __mbsrtowcs_l (wchar_t *dst
, const char **src
, size_t len
,
118 mbstate_t *ps
, __locale_t l
) attribute_hidden
;
120 /* Special version. We know that all uses of mbsinit inside the libc
121 have a non-NULL parameter. And certainly we can access the
122 internals of the data structure directly. */
123 # define mbsinit(state) ((state)->__count == 0)
124 # define __mbsinit(state) ((state)->__count == 0)