mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-22 23:17:28 +08:00
71511d4ac8
#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>
30 lines
534 B
Makefile
30 lines
534 B
Makefile
libc_a_SOURCES += \
|
|
%D%/setlocale.h \
|
|
%D%/locale.c \
|
|
%D%/localeconv.c
|
|
|
|
## The following interfaces are EL/IX level 2
|
|
if !ELIX_LEVEL_1
|
|
libc_a_SOURCES += \
|
|
%D%/duplocale.c \
|
|
%D%/freelocale.c \
|
|
%D%/getlocalename_l.c \
|
|
%D%/lctype.c \
|
|
%D%/lmessages.c \
|
|
%D%/lnumeric.c \
|
|
%D%/lmonetary.c \
|
|
%D%/newlocale.c \
|
|
%D%/nl_langinfo.c \
|
|
%D%/timelocal.c \
|
|
%D%/uselocale.c
|
|
endif
|
|
|
|
LIBC_CHEWOUT_FILES += \
|
|
%D%/duplocale.def \
|
|
%D%/freelocale.def \
|
|
%D%/locale.def \
|
|
%D%/newlocale.def \
|
|
%D%/uselocale.def
|
|
|
|
LIBC_CHAPTERS += %D%/locale.tex
|