add fgetpwent (nonstandard function)
[musl] / include / wchar.h
index 74f830d..87e244a 100644 (file)
@@ -17,6 +17,8 @@ extern "C" {
 
 #include <bits/alltypes.h>
 
+#include <bits/wchar.h>
+
 #undef NULL
 #ifdef __cplusplus
 #define NULL 0
@@ -24,15 +26,9 @@ extern "C" {
 #define NULL ((void*)0)
 #endif
 
-#undef WCHAR_MIN
-#undef WCHAR_MAX
-#define WCHAR_MIN (-1-0x7fffffff)
-#define WCHAR_MAX (0x7fffffff)
-
 #undef WEOF
 #define WEOF (-1)
 
-
 typedef struct
 {
        unsigned __opaque1, __opaque2;
@@ -47,6 +43,7 @@ wchar_t *wcsncat (wchar_t *, const wchar_t *, size_t);
 int wcscmp (const wchar_t *, const wchar_t *);
 int wcsncmp (const wchar_t *, const wchar_t *, size_t);
 
+int wcscoll(const wchar_t *, const wchar_t *);
 size_t wcsxfrm (wchar_t *, const wchar_t *, size_t n);
 
 wchar_t *wcschr (const wchar_t *, wchar_t);
@@ -130,6 +127,13 @@ size_t wcsftime (wchar_t *, size_t, const wchar_t *, const struct tm *);
 
 #undef iswdigit
 
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+FILE *open_wmemstream(wchar_t **, size_t *);
+size_t mbsnrtowcs(wchar_t *, const char **, size_t, size_t, mbstate_t *);
+size_t wcsnrtombs(char *, const wchar_t **, size_t, size_t, mbstate_t *);
+#endif
+
 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
 int wcwidth (wchar_t);
 int wcswidth (const wchar_t *, size_t);