newlib-cygwin/newlib/libc/locale
Corinna Vinschen 71511d4ac8 getlocalename_l: implement per SUS Base Specifications Issue 8 draft
#include <locale.h>
  const char *getlocalename_l(int category, locale_t locobj);

Most notably, we need a per-thread space to store the string
returned if locobj is LC_GLOBAL_LOCALE.  No errors are defined
for getlocalename_l.  So we can't use buffer allocation which
might lead to an ENOMEM error.  We have to use a "static" buffer
in the per-thread state.

Note that the feature test macro in locale.h is not quite correct.
This needs to be fixed as soon as the

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-31 20:11:57 +01:00
..
Makefile.inc getlocalename_l: implement per SUS Base Specifications Issue 8 draft 2024-01-31 20:11:57 +01:00
duplocale.c locale: remove TRAD_SYNOPSIS 2017-12-01 03:41:50 -06:00
freelocale.c locale: remove TRAD_SYNOPSIS 2017-12-01 03:41:50 -06:00
getlocalename_l.c getlocalename_l: implement per SUS Base Specifications Issue 8 draft 2024-01-31 20:11:57 +01:00
lctype.c Cygwin: fix LC_CTYPE in global locale to be a real C.UTF-8 locale 2022-12-03 16:16:30 +01:00
lmessages.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lmonetary.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lnumeric.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
locale.c Reentrancy, use _REENT_ERRNO() 2023-09-11 09:23:05 +02:00
locale.tex newlib: docs: add "Function " to every function node 2024-01-22 21:58:58 -05:00
localeconv.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
newlocale.c Reentrancy, use _REENT_ERRNO() 2023-09-11 09:23:05 +02:00
nl_langinfo.3 * libc/include/langinfo.h: New file. 2002-08-23 01:56:05 +00:00
nl_langinfo.c newlib: nl_langinfo: Fix a bug of time stuff. 2023-11-24 09:53:11 +09:00
setlocale.h Cygwin: convert Windows locale handling from LCID to ISO5646 strings 2023-02-24 16:40:58 +01:00
timelocal.c fix __time_load_locale return code 2023-05-17 17:47:54 -04:00
uselocale.c Add _REENT_LOCALE(ptr) 2022-07-13 06:55:46 +02:00