From aefd8b5b518b958f64506a6f74aeffb4f47bde8a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 22 Jul 2016 22:54:07 +0200 Subject: Implement newlocale, freelocale, duplocale, uselocale Add global const __C_locale for reference purposes. Bump Cygwin API minor number and DLL major version number to 2.6.0. Signed-off by: Corinna Vinschen --- newlib/libc/include/locale.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'newlib/libc/include/locale.h') diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h index 40e412451..d60132c35 100644 --- a/newlib/libc/include/locale.h +++ b/newlib/libc/include/locale.h @@ -65,14 +65,24 @@ struct lconv char int_p_sign_posn; }; +struct _reent; +char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *)); +struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); + +locale_t _newlocale_r (struct _reent *, int, const char *, locale_t); +void _freelocale_r (struct _reent *, locale_t); +locale_t _duplocale_r (struct _reent *, locale_t); +locale_t _uselocale_r (struct _reent *, locale_t); + #ifndef _REENT_ONLY -char *_EXFUN(setlocale,(int category, const char *locale)); +char *_EXFUN(setlocale,(int, const char *)); struct lconv *_EXFUN(localeconv,(void)); -#endif -struct _reent; -char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale)); -struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); +locale_t newlocale (int, const char *, locale_t); +void freelocale (locale_t); +locale_t duplocale (locale_t); +locale_t uselocale (locale_t); +#endif _END_STD_C -- cgit v1.2.3