/titanic_41/usr/src/lib/libc/port/locale/ |
H A D | localeimpl.c | 207 struct locdata *loc; in locdata_get_cache() local 214 loc = cache_data[category]; in locdata_get_cache() 216 if ((loc != NULL) && (strcmp(loc->l_lname, locname) == 0)) { in locdata_get_cache() 218 return (loc); in locdata_get_cache() 226 for (loc = cat_data[category]; loc != NULL; loc = loc->l_next) { in locdata_get_cache() 227 if (strcmp(locname, loc->l_lname) == 0) { in locdata_get_cache() 249 if (loc == NULL) { in locdata_get_cache() 251 loc = (*loaders[category])(locname); in locdata_get_cache() 253 if (loc != NULL) in locdata_get_cache() 254 (void) strlcpy(loc->l_lname, locname, in locdata_get_cache() [all …]
|
H A D | setlocale.c | 69 locale_t loc; in setlocale() local 83 loc = newlocale(mask, locname, NULL); in setlocale() 84 if (loc == NULL) { in setlocale() 99 if (strcmp(srch->locname, loc->locname) == 0) { in setlocale() 106 loc->next = setlocale_list; in setlocale() 107 loc->on_list = 1; in setlocale() 108 setlocale_list = loc; in setlocale() 111 freelocale(loc); in setlocale() 112 loc = srch; in setlocale() 114 ___global_locale = loc; in setlocale() [all …]
|
H A D | fnmatch.c | 81 locale_t loc = uselocale(NULL); local 85 loc)); 90 int flags, mbstate_t patmbs, mbstate_t strmbs, locale_t loc) in fnmatch1() argument 98 pclen = mbrtowc_l(&pc, pattern, MB_LEN_MAX, &patmbs, loc); in fnmatch1() 102 sclen = mbrtowc_l(&sc, string, MB_LEN_MAX, &strmbs, loc); in fnmatch1() 153 flags, patmbs, strmbs, loc)) in fnmatch1() 156 &strmbs, loc); in fnmatch1() 180 &patmbs, loc)) { in fnmatch1() 194 &patmbs, loc); in fnmatch1() 208 (towlower_l(pc, loc) == towlower_l(sc, loc))) in fnmatch1() [all …]
|
H A D | wcscasecmp.c | 44 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) in wcscasecmp_l() argument 49 while (towlower_l(*s1, loc) == towlower_l(*s2, loc)) { in wcscasecmp_l() 55 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcscasecmp_l() 65 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) in wcsncasecmp_l() argument 70 while ((towlower_l(*s1, loc) == towlower_l(*s2, loc)) && n--) { in wcsncasecmp_l() 76 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcsncasecmp_l()
|
H A D | localeconv.c | 59 locale_t loc; in localeconv() local 63 loc = uselocale(NULL); in localeconv() 64 lconv = &loc->lconv; in localeconv() 66 if (loc->loaded[LC_MONETARY] == 0) { in localeconv() 67 mptr = loc->locdata[LC_MONETARY]->l_data[0]; in localeconv() 93 loc->loaded[LC_MONETARY] = 1; in localeconv() 96 if (loc->loaded[LC_NUMERIC] == 0) { in localeconv() 97 nptr = loc->locdata[LC_NUMERIC]->l_data[0]; in localeconv() 104 loc->loaded[LC_NUMERIC] = 1; in localeconv()
|
H A D | towlower.c | 48 change_case_ext(locale_t loc, wint_t c, int lower) in change_case_ext() argument 58 rl = loc->runelocale; in change_case_ext() 76 towlower_l(wint_t wc, locale_t loc) in towlower_l() argument 80 change_case_ext(loc, wc, 1) : in towlower_l() 81 loc->runelocale->__maplower[wc]); in towlower_l() 95 towupper_l(wint_t wc, locale_t loc) in towupper_l() argument 99 change_case_ext(loc, wc, 0) : in towupper_l() 100 loc->runelocale->__mapupper[wc]); in towupper_l()
|
H A D | fgetwc.c | 46 _fgetwc_unlocked_l(FILE *fp, locale_t loc) in _fgetwc_unlocked_l() argument 57 lct = loc->ctype; in _fgetwc_unlocked_l() 114 locale_t loc = uselocale(NULL); in fgetwc() local 117 r = _fgetwc_unlocked_l(fp, loc); in fgetwc() 133 locale_t loc = uselocale(NULL); in __fgetwc_xpg5() local 138 r = _fgetwc_unlocked_l(fp, loc); in __fgetwc_xpg5() 146 fgetwc_l(FILE *fp, locale_t loc) in fgetwc_l() argument 153 r = _fgetwc_unlocked_l(fp, loc); in fgetwc_l()
|
H A D | strftime.c | 71 locale_t loc) in strftime_l() argument 76 p = _fmt(loc, ((format == NULL) ? "%c" : format), t, s, s + maxsize); in strftime_l() 91 _fmt(locale_t loc, const char *format, const struct tm *t, char *pt, in _fmt() argument 95 const struct lc_time *tptr = loc->time; in _fmt() 146 pt = _fmt(loc, tptr->c_fmt, t, pt, ptlim); in _fmt() 149 pt = _fmt(loc, "%m/%d/%y", t, pt, ptlim); in _fmt() 179 pt = _fmt(loc, "%Y-%m-%d", t, pt, ptlim); in _fmt() 239 pt = _fmt(loc, "%H:%M", t, pt, ptlim); in _fmt() 242 pt = _fmt(loc, tptr->ampm_fmt, t, pt, ptlim); in _fmt() 261 pt = _fmt(loc, "%H:%M:%S", t, pt, ptlim); in _fmt() [all …]
|
H A D | wctrans.c | 43 towctrans_l(wint_t wc, wctrans_t desc, locale_t loc) in towctrans_l() argument 47 wc = towlower_l(wc, loc); in towctrans_l() 50 wc = towupper_l(wc, loc); in towctrans_l() 72 wctrans_l(const char *charclass, locale_t loc) in wctrans_l() argument 83 _NOTE(ARGUNUSED(loc)); in wctrans_l()
|
H A D | iswctype.c | 63 __istype_l(locale_t loc, wint_t c, unsigned int f) in __istype_l() argument 68 rt = __runetype(loc->runelocale, c); in __istype_l() 70 rt = loc->runelocale->__runetype[c]; in __istype_l() 81 iswctype_l(wint_t wc, wctype_t class, locale_t loc) in iswctype_l() argument 85 return (__istype_l(loc, wc, class)); in iswctype_l() 116 isw##type##_l(wint_t wc, locale_t loc) \ 120 __istype_l(loc, wc, mask)); \
|
/titanic_41/usr/src/uts/common/io/xge/hal/include/ |
H A D | xgehal-types.h | 34 #define BIT(loc) (0x8000000000000000ULL >> (loc)) argument 39 #define vBIT(val, loc, sz) (((u64)(val)) << (64-(loc)-(sz))) argument 40 #define vBIT32(val, loc, sz) (((u32)(val)) << (32-(loc)-(sz))) argument 45 #define bVAL1(bits, loc) ((((u64)bits) >> (64-(loc+1))) & 0x1) argument 46 #define bVAL2(bits, loc) ((((u64)bits) >> (64-(loc+2))) & 0x3) argument 47 #define bVAL3(bits, loc) ((((u64)bits) >> (64-(loc+3))) & 0x7) argument 48 #define bVAL4(bits, loc) ((((u64)bits) >> (64-(loc+4))) & 0xF) argument 49 #define bVAL5(bits, loc) ((((u64)bits) >> (64-(loc+5))) & 0x1F) argument 50 #define bVAL6(bits, loc) ((((u64)bits) >> (64-(loc+6))) & 0x3F) argument 51 #define bVAL7(bits, loc) ((((u64)bits) >> (64-(loc+7))) & 0x7F) argument [all …]
|
/titanic_41/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=$1 [all …]
|
/titanic_41/usr/src/test/libc-tests/tests/newlocale/ |
H A D | newlocale_test.c | 62 locale_t cloc, loc; in testlocale_thr_one() local 70 loc = newlocale(LC_ALL_MASK, l->locale, NULL); in testlocale_thr_one() 71 if (loc == NULL) { in testlocale_thr_one() 74 day = nl_langinfo_l(DAY_1, loc); in testlocale_thr_one() 96 (void) uselocale(loc); in testlocale_thr_one() 114 if (uselocale(cloc) != loc) { in testlocale_thr_one() 117 freelocale(loc); in testlocale_thr_one() 135 locale_t loc, bad; in test_newlocale_negative() local 141 loc = newlocale(LC_ALL_MASK, "de_DE.UTF-8", NULL); in test_newlocale_negative() 142 if (loc == NULL) { in test_newlocale_negative() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | tsdalloc.c | 48 tsdent_t *loc = ptr; in _free_tsdbuf() local 53 if (loc != NULL) { in _free_tsdbuf() 55 if ((p = loc[i].buf) != NULL) { in _free_tsdbuf() 56 destructor = loc[i].destructor; in _free_tsdbuf() 59 lfree(p, loc[i].size); in _free_tsdbuf() 62 lfree(loc, _T_NUM_ENTRIES * sizeof (tsdent_t)); in _free_tsdbuf() 70 tsdent_t *loc; in tsdalloc() local 84 if ((loc = pthread_getspecific(key)) != NULL) { in tsdalloc() 85 if ((p = loc[n].buf) != NULL) in tsdalloc() 89 loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t)); in tsdalloc() [all …]
|
H A D | seekdir.c | 53 seekdir(DIR *dirp, long loc) in seekdir() argument 64 if (off != loc) { in seekdir() 66 (void) lseek(dirp->dd_fd, loc, SEEK_SET); in seekdir() 73 ((dirent_t *)(uintptr_t)&dirp->dd_buf[0])->d_off = loc; in seekdir() 86 seekdir64(DIR *dirp, off64_t loc) in seekdir64() argument 107 if (off != loc) { in seekdir64() 109 (void) lseek64(dirp->dd_fd, loc, SEEK_SET); in seekdir64() 116 ((dirent64_t *)(uintptr_t)&dirp->dd_buf[0])->d_off = loc; in seekdir64() 122 seekdir(DIR *dirp, long loc) in seekdir() argument 124 seekdir64(dirp, (off64_t)(uint32_t)loc); in seekdir()
|
/titanic_41/usr/src/lib/libnisdb/ |
H A D | db_index_entry_c.c | 45 register db_index_entry *loc; local 85 loc = ep->next; 90 if (loc == NULL) { 91 ep->next = loc = (db_index_entry *) 93 if (loc == NULL) { 98 memset(loc, 0, sizeof (db_index_entry)); 106 freeptr = loc; 110 if (loc == NULL) 112 ep = loc; 144 register db_free_entry *loc; local [all …]
|
H A D | db_table.cc | 886 db_table::cacheValid(entryp loc) { in cacheValid() argument 894 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in cacheValid() 896 else if (mapping.expire == 0 || mapping.expire[loc] >= now.tv_sec) in cacheValid() 911 db_table::dupEntry(entry_object *obj, entryp loc) { in dupEntry() argument 912 if (obj == 0 || loc < 0 || loc >= table_size || tab == 0 || in dupEntry() 913 tab[loc] == 0) in dupEntry() 916 if (sameEntry(obj, tab[loc])) { in dupEntry() 917 setEntryExp(loc, tab[loc], 0); in dupEntry() 920 enumTouch(loc); in dupEntry() 1029 db_table::enumTouch(entryp loc) { in enumTouch() argument [all …]
|
/titanic_41/usr/src/common/zfs/ |
H A D | zfs_namecheck.c | 70 const char *loc; in zfs_component_namecheck() local 84 for (loc = path; *loc; loc++) { in zfs_component_namecheck() 85 if (!valid_char(*loc)) { in zfs_component_namecheck() 88 *what = *loc; in zfs_component_namecheck() 181 for (const char *loc = start; loc != end; loc++) { in entity_namecheck() local 182 if (!valid_char(*loc) && *loc != '%') { in entity_namecheck() 185 *what = *loc; in entity_namecheck()
|
/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | svc.c | 520 char *str, *loc, val; in svc_fmri_str2nvl() local 535 if ((loc = strpbrk(str, "@/")) == NULL) in svc_fmri_str2nvl() 538 if (*loc == '@') { in svc_fmri_str2nvl() 540 *loc = '\0'; in svc_fmri_str2nvl() 542 *loc = '@'; in svc_fmri_str2nvl() 547 *loc = '@'; in svc_fmri_str2nvl() 551 *loc = '@'; in svc_fmri_str2nvl() 552 str = loc + 1; in svc_fmri_str2nvl() 553 if ((loc = strchr(str, '/')) == NULL) in svc_fmri_str2nvl() 557 if (loc != str) { in svc_fmri_str2nvl() [all …]
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | xdr_refer.c | 66 caddr_t loc = *pp; in xdr_reference() local 75 if (loc == NULL) in xdr_reference() 80 *pp = loc = malloc(size); in xdr_reference() 81 if (loc == NULL) { in xdr_reference() 85 (void) memset(loc, 0, (int)size); in xdr_reference() 89 stat = (*proc)(xdrs, loc, LASTUNSIGNED); in xdr_reference() 92 free(loc); in xdr_reference()
|
/titanic_41/usr/src/cmd/ast/msgcc/ |
H A D | msgget.c | 54 char* loc; in main() local 79 if (error_info.errors || !(loc = *argv++) || !(cmd = *argv++) || !(s = *argv++)) in main() 89 if (streq(loc, "-")) in main() 90 loc = 0; in main() 93 if (!mcfind(path, loc, cmd, LC_MESSAGES, 0) && (!cat || !mcfind(path, loc, cat, LC_MESSAGES, 0))) in main() 106 s = errorx(loc, cmd, cat, msg); in main()
|
/titanic_41/usr/src/uts/common/rpc/ |
H A D | xdr_refer.c | 70 caddr_t loc = *pp; in xdr_reference() local 73 if (loc == NULL) { in xdr_reference() 79 *pp = loc = (caddr_t)mem_alloc(size); in xdr_reference() 80 bzero(loc, size); in xdr_reference() 88 stat = (*proc)(xdrs, loc, LASTUNSIGNED); in xdr_reference() 91 mem_free(loc, size); in xdr_reference()
|
/titanic_41/usr/src/cmd/cdrw/ |
H A D | options.c | 51 uint_t loc; in add_option() local 52 loc = (uint_t)option; in add_option() 53 loc &= 0x7f; in add_option() 55 msk->bitmap[loc >> 3] |= bitlocation[loc & 7]; in add_option()
|
/titanic_41/usr/src/cmd/msgfmt/ |
H A D | gnu_po.y | 98 struct loc *pos1; 108 pos1 = (struct loc *)Xmalloc(2 * sizeof (struct loc)); 175 struct loc *tmp; 181 tmp = (struct loc *)Xrealloc($1.pos, 182 no * sizeof (struct loc)); 205 struct loc *pos; 211 pos = (struct loc *)Xmalloc(sizeof (struct loc));
|
/titanic_41/usr/src/cmd/svc/configd/ |
H A D | object.c | 344 check_string(uintptr_t loc, uint32_t len, uint32_t sz) in check_string() argument 346 const char *ptr = (const char *)loc; in check_string() 361 uintptr_t loc; in tx_check_and_setup() local 365 loc = (uintptr_t)cmds_arg; in tx_check_and_setup() 370 cmds = (struct rep_protocol_transaction_cmd *)loc; in tx_check_and_setup() 375 loc += REP_PROTOCOL_TRANSACTION_CMD_MIN_SIZE; in tx_check_and_setup() 379 if (len <= 1 || !check_string(loc, len, sz)) { in tx_check_and_setup() 382 cur->tx_prop = (const char *)loc; in tx_check_and_setup() 385 loc += len; in tx_check_and_setup() 389 cur->tx_values = (uint32_t *)loc; in tx_check_and_setup() [all …]
|