Lines Matching defs:loc
59 load_errlist(locale_t loc)
65 catd = catopen_l("libc", NL_CAT_LOCALE, loc);
67 if (loc->cache->errlist_prefix == NULL) {
73 if (atomic_cas_ptr(__UNCONST(&loc->cache->errlist_prefix),
78 if (loc->cache->errlist)
90 if (atomic_cas_ptr(__UNCONST(&loc->cache->errlist), NULL, errlist) != NULL)
104 _strerror_lr(int num, char *buf, size_t buflen, locale_t loc)
119 errlist = *loc->cache->errlistp;
122 load_errlist(loc);
123 errlist = *loc->cache->errlistp;
134 errlist_prefix = loc->cache->errlist_prefix;
137 load_errlist(loc);
138 errlist_prefix = loc->cache->errlist_prefix;
143 slen = snprintf_l(buf, buflen, loc, errlist_prefix, num);