Lines Matching defs:category
73 * Current locales for each category
103 setlocale(int category, const char *locale)
108 if (category < LC_ALL || category >= _LC_LAST) {
113 return (category != LC_ALL ?
114 current_categories[category] : currentlocale());
126 if (category == LC_ALL) {
136 env = __get_locale_env(category);
141 (void)strcpy(new_categories[category], env);
143 } else if (category != LC_ALL) {
148 (void)strcpy(new_categories[category], locale);
188 if (category != LC_ALL)
189 return (loadlocale(category));
230 loadlocale(int category)
232 char *new = new_categories[category];
233 char *old = current_categories[category];
249 switch (category) {
278 (void)strcpy(__xlocale_global_locale.components[category-1]->locale, new);
286 __get_locale_env(int category)
295 env = getenv(categories[category]);