X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fwchar.h;h=34f2ef300620af29f08aa70089e59d1b5ade1322;hp=bac7f40e40524f8cf0f1c65229c651897c9d22c2;hb=026148e2e90368c0b23192f506e15aa6197105aa;hpb=e70d680319ea23460b891e14259f2f6b3a568291 diff --git a/includes/wchar.h b/includes/wchar.h index bac7f40..34f2ef3 100644 --- a/includes/wchar.h +++ b/includes/wchar.h @@ -7,7 +7,7 @@ #ifndef _PDCLIB_WCHAR_H #define _PDCLIB_WCHAR_H -#include <_PDCLIB_int.h> +#include <_PDCLIB_io.h> _PDCLIB_BEGIN_EXTERN_C /* This is VASTLY incomplete. Functions being implemented as required by other portions of the library @@ -101,6 +101,17 @@ wint_t putwc(wchar_t c, struct _PDCLIB_file_t *stream); wint_t putwchar(wchar_t c); wint_t ungetwc(wint_t c, struct _PDCLIB_file_t *stream); +#if _PDCLIB_GNU_SOURCE +wint_t getwc_unlocked(struct _PDCLIB_file_t *stream); +wint_t getwchar_unlocked(void); +wint_t fgetwc_unlocked(struct _PDCLIB_file_t *stream); +wint_t fputwc_unlocked(wchar_t wc, struct _PDCLIB_file_t *stream); +wint_t putwc_unlocked(wchar_t wc, struct _PDCLIB_file_t *stream); +wint_t putwchar_unlocked(wchar_t wc); +wchar_t *fgetws_unlocked(wchar_t *ws, int n, struct _PDCLIB_file_t *stream); +int fputws_unlocked(const wchar_t *ws, struct _PDCLIB_file_t *stream); +#endif + /* Wide character <-> Numeric conversions */ #if 0 double wcstod(const wchar_t *_PDCLIB_restrict nptr, wchar_t **_PDCLIB_restrict endptr);