/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | localeimpl.c | 208 struct locdata *loc; local 215 loc = cache_data[category]; 217 if ((loc != NULL) && (strcmp(loc->l_lname, locname) == 0)) { 219 return (loc); 227 for (loc = cat_data[category]; loc != NULL; loc = loc->l_next) { 228 if (strcmp(locname, loc 360 __mb_cur_max_l(locale_t loc) argument 378 locale_t loc; local 404 freelocale(locale_t loc) argument 418 locale_t loc; local 468 uselocale(locale_t loc) argument 506 mklocname(locale_t loc) argument [all...] |
H A D | mbsinit.c | 22 mbsinit_l(const mbstate_t *s, locale_t loc) argument 24 return (loc->ctype->lc_mbsinit(s));
|
H A D | setlocale.c | 70 locale_t loc; local 84 loc = newlocale(mask, locname, NULL); 85 if (loc == NULL) { 100 if (strcmp(srch->locname, loc->locname) == 0) { 107 loc->next = setlocale_list; 108 loc->on_list = 1; 109 setlocale_list = loc; 112 freelocale(loc); 113 loc = srch; 115 ___global_locale = loc; 124 current_locale(locale_t loc, int cat) argument 142 install_legacy(locale_t loc, int mask) argument [all...] |
H A D | wcscasecmp.c | 45 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) argument 50 while (towlower_l(*s1, loc) == towlower_l(*s2, loc)) { 56 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); 66 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) argument 71 while ((towlower_l(*s1, loc) == towlower_l(*s2, loc)) && --n) { 77 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); [all...] |
H A D | localeconv.c | 59 locale_t loc; local 63 loc = uselocale(NULL); 64 lconv = &loc->lconv; 66 if (loc->loaded[LC_MONETARY] == 0) { 67 mptr = loc->locdata[LC_MONETARY]->l_data[0]; 93 loc->loaded[LC_MONETARY] = 1; 96 if (loc->loaded[LC_NUMERIC] == 0) { 97 nptr = loc->locdata[LC_NUMERIC]->l_data[0]; 104 loc->loaded[LC_NUMERIC] = 1;
|
H A D | tolower.c | 26 tolower_l(int c, locale_t loc) argument 28 return (((unsigned)c > 255) ? c : loc->ctype->lc_trans_lower[c]); 32 toupper_l(int c, locale_t loc) argument 34 return (((unsigned)c > 255) ? c : loc->ctype->lc_trans_upper[c]);
|
H A D | collcmp.c | 38 _collate_range_cmp(wchar_t c1, wchar_t c2, locale_t loc) argument 46 return (wcscoll_l(s1, s2, loc));
|
H A D | btowc.c | 37 btowc_l(int c, locale_t loc) argument 52 if (mbrtowc_l(&wc, &cc, 1, &mbs, loc) > 1)
|
H A D | fgetwc.c | 46 _fgetwc_unlocked_l(FILE *fp, locale_t loc) argument 57 lct = loc->ctype; 114 locale_t loc = uselocale(NULL); local 117 r = _fgetwc_unlocked_l(fp, loc); 133 locale_t loc = uselocale(NULL); local 138 r = _fgetwc_unlocked_l(fp, loc); 146 fgetwc_l(FILE *fp, locale_t loc) argument 153 r = _fgetwc_unlocked_l(fp, loc);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | tsdalloc.c | 48 tsdent_t *loc = ptr; local 53 if (loc != NULL) { 55 if ((p = loc[i].buf) != NULL) { 56 destructor = loc[i].destructor; 59 lfree(p, loc[i].size); 62 lfree(loc, _T_NUM_ENTRIES * sizeof (tsdent_t)); 70 tsdent_t *loc; local 84 if ((loc = pthread_getspecific(key)) != NULL) { 85 if ((p = loc[n].buf) != NULL) 89 loc [all...] |
H A D | _libc_gettext.h | 41 #define _libc_gettext_l(msg_id, loc) dgettext_l(TEXT_DOMAIN, (msg_id), (loc))
|
H A D | seekdir.c | 53 seekdir(DIR *dirp, long loc) argument 64 if (off != loc) { 66 (void) lseek(dirp->dd_fd, loc, SEEK_SET); 73 ((dirent_t *)(uintptr_t)&dirp->dd_buf[0])->d_off = loc; 86 seekdir64(DIR *dirp, off64_t loc) argument 107 if (off != loc) { 109 (void) lseek64(dirp->dd_fd, loc, SEEK_SET); 116 ((dirent64_t *)(uintptr_t)&dirp->dd_buf[0])->d_off = loc; 122 seekdir(DIR *dirp, long loc) argument 124 seekdir64(dirp, (off64_t)(uint32_t)loc); [all...] |
/illumos-gate/usr/src/test/libc-tests/tests/priv_gettext/ |
H A D | priv_gettext.c | 55 locale_t loc; local 64 loc = newlocale(LC_MESSAGES_MASK, "zz_AA.UTF-8", NULL); 65 assert(loc != NULL); 68 (void) uselocale(loc); 73 freelocale(loc); 76 loc = newlocale(LC_MESSAGES_MASK, "C", NULL); 77 assert(loc != NULL); 80 (void) uselocale(loc); 85 freelocale(loc);
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | errorx.c | 32 errorx(const char* loc, const char* cmd, const char* cat, const char* msg) argument 39 if (!loc) 40 loc = (const char*)locales[AST_LC_MESSAGES]->code; 45 if (s = (*error_info.translate)(loc, cmd, cat, msg))
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index_entry_c.c | 49 register db_index_entry *loc; local 89 loc = ep->next; 94 if (loc == NULL) { 95 ep->next = loc = (db_index_entry *) 97 if (loc == NULL) { 102 memset(loc, 0, sizeof (db_index_entry)); 110 freeptr = loc; 114 if (loc == NULL) 116 ep = loc; 148 register db_free_entry *loc; local [all...] |
/illumos-gate/usr/src/test/libc-tests/tests/strerror/ |
H A D | strerror.c | 57 strerror_l_verify(locale_t loc, const char *exp) argument 61 r = strerror_l(err, loc); 69 locale_t loc; local 81 loc = newlocale(LC_MESSAGES_MASK, "zz_AA.UTF-8", NULL); 82 assert(loc != NULL); 86 strerror_l_verify(loc, trans); 88 (void) uselocale(loc); 91 strerror_l_verify(loc, trans); 96 strerror_l_verify(loc, trans); 98 freelocale(loc); [all...] |
/illumos-gate/usr/src/uts/common/io/xge/hal/include/ |
H A D | xgehal-types.h | 32 * BIT(loc) - set bit at offset 34 #define BIT(loc) (0x8000000000000000ULL >> (loc)) 37 * vBIT(val, loc, sz) - set bits at offset 39 #define vBIT(val, loc, sz) (((u64)(val)) << (64-(loc)-(sz))) 40 #define vBIT32(val, loc, sz) (((u32)(val)) << (32-(loc)-(sz))) 43 * bVALx(bits, loc) - Get the value of x bits at location 45 #define bVAL1(bits, loc) ((((u6 [all...] |
/illumos-gate/usr/src/lib/libast/common/dir/ |
H A D | seekdir.c | 41 seekdir(register DIR* dirp, long loc) 46 if (telldir(dirp) != loc) 50 while (telldir(dirp) != loc)
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | lpaths.c | 70 char *loc; local 72 loc = setlocale(LC_MESSAGES, NULL); 73 if (loc != NULL) { 75 LOCALEPATH, loc, file);
|
/illumos-gate/usr/src/test/libc-tests/tests/catopen/ |
H A D | catopen.c | 51 locale_t loc; local 63 loc = newlocale(LC_MESSAGES_MASK, "zz_AA.UTF-8", NULL); 64 assert(loc != NULL); 67 (void) uselocale(loc); 72 freelocale(loc); 77 loc = newlocale(LC_MESSAGES_MASK, "C", NULL); 78 assert(loc != NULL); 81 (void) uselocale(loc);
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | options.c | 51 uint_t loc; local 52 loc = (uint_t)option; 53 loc &= 0x7f; 55 msk->bitmap[loc >> 3] |= bitlocation[loc & 7];
|
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/ |
H A D | newlocale_test.c | 62 locale_t cloc, loc; local 70 loc = newlocale(LC_ALL_MASK, l->locale, NULL); 71 if (loc == NULL) { 74 day = nl_langinfo_l(DAY_1, loc); 96 (void) uselocale(loc); 114 if (uselocale(cloc) != loc) { 117 freelocale(loc); 135 locale_t loc, bad; local 141 loc = newlocale(LC_ALL_MASK, "de_DE.UTF-8", NULL); 142 if (loc 164 locale_t loc; local 199 locale_t loc; local [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_refer.c | 68 caddr_t loc = *pp; local 71 if (loc == NULL) 76 *pp = loc = malloc(size); 77 if (loc == NULL) { 81 (void) memset(loc, 0, (int)size); 85 stat = (*proc)(xdrs, loc, LASTUNSIGNED); 88 free(loc);
|
/illumos-gate/usr/src/cmd/ast/msgcc/ |
H A D | msgget.c | 54 char* loc; local 79 if (error_info.errors || !(loc = *argv++) || !(cmd = *argv++) || !(s = *argv++)) 89 if (streq(loc, "-")) 90 loc = 0; 93 if (!mcfind(path, loc, cmd, LC_MESSAGES, 0) && (!cat || !mcfind(path, loc, cat, LC_MESSAGES, 0))) 106 s = errorx(loc, cmd, cat, msg);
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | net-loc | 62 LEGACY_LOC_PATH=/etc/nwam/loc/Legacy 63 USER_LOC_PATH=/etc/nwam/loc/User 178 loc=$1 184 DNS_CONFIGSRC=`nwam_get_loc_list_prop $loc dns-nameservice-configsrc` 186 echo "missing 'dns-nameservice-configsrc' property for '$loc'" 193 DNS_SERVERS=`nwam_get_loc_list_prop $loc \ 196 echo "DNS nameserver not set for '$loc'" 199 DNS_DOMAIN=`nwam_get_loc_prop $loc \ 201 DNS_SEARCH=`nwam_get_loc_list_prop $loc \ 250 loc [all...] |