Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 204) sorted by relevance

123456789

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dlocaleimpl.c241 for (loc = cat_data[category]; loc != NULL; loc = loc->l_next) { in locdata_get_cache()
428 loc = lmalloc(sizeof (*loc)); in duplocale()
440 loc->collate = loc->locdata[LC_COLLATE]->l_data[0]; in duplocale()
441 loc->ctype = loc->locdata[LC_CTYPE]->l_data[0]; in duplocale()
445 loc->numeric = loc->locdata[LC_NUMERIC]->l_data[0]; in duplocale()
446 loc->time = loc->locdata[LC_TIME]->l_data[0]; in duplocale()
458 if ((loc != NULL) && (loc != &posix_locale) && (!loc->on_list)) in freelocale()
459 lfree(loc, sizeof (*loc)); in freelocale()
502 loc->collate = loc->locdata[LC_COLLATE]->l_data[0]; in newlocale()
503 loc->ctype = loc->locdata[LC_CTYPE]->l_data[0]; in newlocale()
[all …]
H A Dsetlocale.c70 locale_t loc; in setlocale() local
85 if (loc == NULL) { in setlocale()
107 loc->next = setlocale_list; in setlocale()
108 loc->on_list = 1; in setlocale()
109 setlocale_list = loc; in setlocale()
112 freelocale(loc); in setlocale()
113 loc = srch; in setlocale()
115 ___global_locale = loc; in setlocale()
117 install_legacy(loc, mask); in setlocale()
124 current_locale(locale_t loc, int cat) in current_locale() argument
[all …]
H A Dwcscasecmp.c45 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) in wcscasecmp_l() argument
50 while (towlower_l(*s1, loc) == towlower_l(*s2, loc)) { in wcscasecmp_l()
56 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcscasecmp_l()
66 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) in wcsncasecmp_l() argument
71 while ((towlower_l(*s1, loc) == towlower_l(*s2, loc)) && --n) { in wcsncasecmp_l()
77 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcsncasecmp_l()
H A Dfnmatch.c78 locale_t loc = uselocale(NULL); in fnmatch() local
82 loc)); in fnmatch()
171 &patmbs, loc)) { in fnmatch1()
185 &patmbs, loc); in fnmatch1()
198 (towlower_l(pc, loc) == towlower_l(sc, loc))) in fnmatch1()
211 &bt_strmbs, loc); in fnmatch1()
253 test = towlower_l(test, loc); in rangematch()
278 c = towlower_l(c, loc); in rangematch()
286 loc); in rangematch()
294 c2 = towlower_l(c2, loc); in rangematch()
[all …]
H A Dlocaleconv.c59 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 Dtowlower.c48 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 Dfgetwc.c46 _fgetwc_unlocked_l(FILE *fp, locale_t loc) in _fgetwc_unlocked_l() argument
57 lct = loc->ctype; in _fgetwc_unlocked_l()
115 locale_t loc = uselocale(NULL); in fgetwc() local
118 r = _fgetwc_unlocked_l(fp, loc); in fgetwc()
134 locale_t loc = uselocale(NULL); in __fgetwc_xpg5() local
139 r = _fgetwc_unlocked_l(fp, loc); in __fgetwc_xpg5()
147 fgetwc_l(FILE *fp, locale_t loc) in fgetwc_l() argument
154 r = _fgetwc_unlocked_l(fp, loc); in fgetwc_l()
H A Dstrftime.c71 locale_t loc) in strftime_l() 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()
373 pt = _fmt(loc, "%e-%b-%Y", t, pt, ptlim); in _fmt()
387 pt = _fmt(loc, tptr->X_fmt, t, pt, ptlim); in _fmt()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/include/
H A Dxgehal-types.h34 #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 …]
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dnet-loc178 loc=$1
250 loc=$1
310 loc=$1
326 "for '$loc'"
357 loc=$1
397 do_dns $loc || return 1
400 do_nis $loc || return 1
433 loc=$1
521 loc=$1
543 loc=$1
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/newlocale/
H A Dnewlocale_test.c62 locale_t cloc, loc; in testlocale_thr_one() local
71 if (loc == NULL) { in testlocale_thr_one()
117 freelocale(loc); in testlocale_thr_one()
135 locale_t loc, bad; in test_newlocale_negative() local
142 if (loc == NULL) { in test_newlocale_negative()
164 locale_t loc; in test_newlocale_categories() local
171 loc = NULL; in test_newlocale_categories()
172 loc = newlocale(LC_TIME_MASK, "de_DE.UTF-8", loc); in test_newlocale_categories()
173 loc = newlocale(LC_MESSAGES_MASK, "ru_RU.UTF-8", loc); in test_newlocale_categories()
174 loc = newlocale(LC_MONETARY_MASK, "en_US.UTF-8", loc); in test_newlocale_categories()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dtsdalloc.c48 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()
70 tsdent_t *loc; in tsdalloc() local
85 if ((p = loc[n].buf) != NULL) in tsdalloc()
90 if (loc == NULL) in tsdalloc()
100 loc[n].buf = p = lmalloc(size); in tsdalloc()
101 loc[n].size = size; in tsdalloc()
[all …]
H A Dseekdir.c53 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()
H A Dgettxt.c71 char *loc; member
92 locale_t loc; in gettxt() local
123 loc = uselocale(NULL); in gettxt()
124 curloc = current_locale(loc, LC_MESSAGES); in gettxt()
131 if (strcmp(curloc, dbc->loc) == 0) { in gettxt()
152 if ((dbc->loc = lmalloc(strlen(curloc) + 1)) == NULL) { in gettxt()
158 (void) strcpy(dbc->loc, curloc); in gettxt()
169 _DFLT_LOC_PATH "%s" MESSAGES "%s", dbc->loc, msgfile) >= in gettxt()
183 if (strcmp(dbc->loc, "C") == 0) { in gettxt()
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_index_entry_c.c47 db_index_entry *loc; in xdr_db_index_entry() local
87 loc = ep->next; in xdr_db_index_entry()
92 if (loc == NULL) { in xdr_db_index_entry()
108 freeptr = loc; in xdr_db_index_entry()
112 if (loc == NULL) in xdr_db_index_entry()
114 ep = loc; in xdr_db_index_entry()
142 db_free_entry *loc; in xdr_db_free_entry() local
175 loc = ep->next; in xdr_db_free_entry()
196 freeptr = loc; in xdr_db_free_entry()
200 if (loc == NULL) in xdr_db_free_entry()
[all …]
H A Ddb_table.cc897 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in cacheValid()
915 if (obj == 0 || loc < 0 || loc >= table_size || tab == 0 || in dupEntry()
916 tab[loc] == 0) in dupEntry()
919 if (sameEntry(obj, tab[loc])) { in dupEntry()
920 setEntryExp(loc, tab[loc], 0); in dupEntry()
923 enumTouch(loc); in dupEntry()
1033 if (loc < 0 || loc >= table_size) in enumTouch()
1057 if (enumMode.flag == 0 || loc < 0 || loc >= table_size || in enumSetup()
1071 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in touchEntry()
1074 setEntryExp(loc, tab[loc], 0); in touchEntry()
[all …]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_namecheck.c74 const char *loc = path; in get_dataset_depth() local
82 loc[i] != '@' && in get_dataset_depth()
83 loc[i] != '#'; i++) { in get_dataset_depth()
84 if (loc[i] == '/') in get_dataset_depth()
102 const char *loc; in zfs_component_namecheck() local
116 for (loc = path; *loc; loc++) { in zfs_component_namecheck()
117 if (!valid_char(*loc)) { in zfs_component_namecheck()
120 *what = *loc; in zfs_component_namecheck()
227 for (const char *loc = start; loc != end; loc++) { in entity_namecheck() local
228 if (!valid_char(*loc) && *loc != '%') { in entity_namecheck()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/strerror/
H A Dstrerror.c57 strerror_l_verify(locale_t loc, const char *exp) in strerror_l_verify() argument
61 r = strerror_l(err, loc); in strerror_l_verify()
69 locale_t loc; in main() local
81 loc = newlocale(LC_MESSAGES_MASK, "zz_AA.UTF-8", NULL); in main()
82 assert(loc != NULL); in main()
86 strerror_l_verify(loc, trans); in main()
88 (void) uselocale(loc); in main()
91 strerror_l_verify(loc, trans); in main()
96 strerror_l_verify(loc, trans); in main()
98 freelocale(loc); in main()
/illumos-gate/usr/src/test/libc-tests/tests/priv_gettext/
H A Dpriv_gettext.c55 locale_t loc; in main() local
64 loc = newlocale(LC_MESSAGES_MASK, "zz_AA.UTF-8", NULL); in main()
65 assert(loc != NULL); in main()
68 (void) uselocale(loc); in main()
73 freelocale(loc); in main()
76 loc = newlocale(LC_MESSAGES_MASK, "C", NULL); in main()
77 assert(loc != NULL); in main()
80 (void) uselocale(loc); in main()
85 freelocale(loc); in main()
/illumos-gate/usr/src/test/libc-tests/tests/catopen/
H A Dcatopen.c51 locale_t loc; in main() local
63 loc = newlocale(LC_MESSAGES_MASK, "zz_AA.UTF-8", NULL); in main()
64 assert(loc != NULL); in main()
67 (void) uselocale(loc); in main()
72 freelocale(loc); in main()
77 loc = newlocale(LC_MESSAGES_MASK, "C", NULL); in main()
78 assert(loc != NULL); in main()
81 (void) uselocale(loc); in main()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dsvc.c540 *loc = '\0'; in svc_fmri_str2nvl()
542 *loc = '@'; in svc_fmri_str2nvl()
547 *loc = '@'; in svc_fmri_str2nvl()
551 *loc = '@'; in svc_fmri_str2nvl()
559 *loc = '\0'; in svc_fmri_str2nvl()
561 *loc = '/'; in svc_fmri_str2nvl()
567 *loc = '/'; in svc_fmri_str2nvl()
571 *loc = '/'; in svc_fmri_str2nvl()
581 val = *loc; in svc_fmri_str2nvl()
593 *loc = val; in svc_fmri_str2nvl()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dxdr_refer.c66 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()
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsgget.c54 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(loc, cmd, LC_MESSAGES, 0, path, sizeof(path)) && (!cat || !mcfind(loc, cat, LC_MESSAGE… in main()
106 s = errorx(loc, cmd, cat, msg); in main()
/illumos-gate/usr/src/uts/common/rpc/
H A Dxdr_refer.c70 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()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dobject.c361 uintptr_t loc; in tx_check_and_setup() local
365 loc = (uintptr_t)cmds_arg; 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()
397 len = *(uint32_t *)loc; in tx_check_and_setup()
398 loc += sizeof (uint32_t); in tx_check_and_setup()
414 loc += len; in tx_check_and_setup()
461 uintptr_t loc; in tx_commit_data_new() local
471 loc = (uintptr_t)cmds_arg; in tx_commit_data_new()
[all …]

123456789