4 #include "pthread_impl.h"
6 #define LOCALE_NAME_MAX 15
11 char name[LOCALE_NAME_MAX+1];
12 struct __locale_map *next;
15 int __setlocalecat(locale_t, int, const char *);
17 #define CURRENT_LOCALE \
18 (libc.uselocale_cnt ? __pthread_self()->locale : &libc.global_locale)
20 #define CURRENT_UTF8 \
21 (libc.bytelocale_cnt_minus_1<0 || __pthread_self()->locale->ctype_utf8)
24 #define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)