Lines Matching refs:domain
772 struct loaded_domain *domain, in _nl_init_domain_conv() argument
784 domain->codeset_cntr = in _nl_init_domain_conv()
787 domain->conv = (__gconv_t) -1; in _nl_init_domain_conv()
790 domain->conv = (iconv_t) -1; in _nl_init_domain_conv()
793 domain->conv_tab = NULL; in _nl_init_domain_conv()
848 if (__gconv_open (outcharset, charset, &domain->conv, in _nl_init_domain_conv()
851 domain->conv = (__gconv_t) -1; in _nl_init_domain_conv()
868 domain->conv = iconv_open (outcharset, charset); in _nl_init_domain_conv()
874 domain->conv = iconv_open (outcharset, charset); in _nl_init_domain_conv()
889 _nl_free_domain_conv (struct loaded_domain *domain) in _nl_free_domain_conv() argument
891 if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1) in _nl_free_domain_conv()
892 free (domain->conv_tab); in _nl_free_domain_conv()
895 if (domain->conv != (__gconv_t) -1) in _nl_free_domain_conv()
896 __gconv_close (domain->conv); in _nl_free_domain_conv()
899 if (domain->conv != (iconv_t) -1) in _nl_free_domain_conv()
900 iconv_close (domain->conv); in _nl_free_domain_conv()
921 struct loaded_domain *domain; in _nl_load_domain() local
1021 domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); in _nl_load_domain()
1022 if (domain == NULL) in _nl_load_domain()
1024 domain_file->data = domain; in _nl_load_domain()
1026 domain->data = (char *) data; in _nl_load_domain()
1027 domain->use_mmap = use_mmap; in _nl_load_domain()
1028 domain->mmap_size = size; in _nl_load_domain()
1029 domain->must_swap = data->magic != _MAGIC; in _nl_load_domain()
1030 domain->malloced = NULL; in _nl_load_domain()
1033 revision = W (domain->must_swap, data->revision); in _nl_load_domain()
1039 domain->nstrings = W (domain->must_swap, data->nstrings); in _nl_load_domain()
1040 domain->orig_tab = (const struct string_desc *) in _nl_load_domain()
1041 ((char *) data + W (domain->must_swap, data->orig_tab_offset)); in _nl_load_domain()
1042 domain->trans_tab = (const struct string_desc *) in _nl_load_domain()
1043 ((char *) data + W (domain->must_swap, data->trans_tab_offset)); in _nl_load_domain()
1044 domain->hash_size = W (domain->must_swap, data->hash_tab_size); in _nl_load_domain()
1045 domain->hash_tab = in _nl_load_domain()
1046 (domain->hash_size > 2 in _nl_load_domain()
1048 ((char *) data + W (domain->must_swap, data->hash_tab_offset)) in _nl_load_domain()
1050 domain->must_swap_hash_tab = domain->must_swap; in _nl_load_domain()
1056 domain->n_sysdep_strings = 0; in _nl_load_domain()
1057 domain->orig_sysdep_tab = NULL; in _nl_load_domain()
1058 domain->trans_sysdep_tab = NULL; in _nl_load_domain()
1065 if (domain->hash_tab == NULL) in _nl_load_domain()
1070 W (domain->must_swap, data->n_sysdep_strings); in _nl_load_domain()
1088 W (domain->must_swap, data->n_sysdep_segments); in _nl_load_domain()
1091 + W (domain->must_swap, data->sysdep_segments_offset)); in _nl_load_domain()
1098 + W (domain->must_swap, sysdep_segments[i].offset); in _nl_load_domain()
1100 W (domain->must_swap, sysdep_segments[i].length); in _nl_load_domain()
1113 + W (domain->must_swap, data->orig_sysdep_tab_offset)); in _nl_load_domain()
1116 + W (domain->must_swap, data->trans_sysdep_tab_offset)); in _nl_load_domain()
1123 memneed = domain->hash_size * sizeof (nls_uint32); in _nl_load_domain()
1134 + W (domain->must_swap, in _nl_load_domain()
1141 if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) in _nl_load_domain()
1146 need += W (domain->must_swap, p->segsize); in _nl_load_domain()
1148 sysdepref = W (domain->must_swap, p->sysdepref); in _nl_load_domain()
1192 domain->malloced = mem; in _nl_load_domain()
1200 mem += domain->hash_size * sizeof (nls_uint32); in _nl_load_domain()
1213 + W (domain->must_swap, in _nl_load_domain()
1220 if (W (domain->must_swap, p->sysdepref) in _nl_load_domain()
1227 W (domain->must_swap, p->sysdepref); in _nl_load_domain()
1251 + W (domain->must_swap, in _nl_load_domain()
1257 + W (domain->must_swap, sysdep_string->offset); in _nl_load_domain()
1271 if (W (domain->must_swap, p->sysdepref) in _nl_load_domain()
1276 W (domain->must_swap, p->segsize); in _nl_load_domain()
1286 W (domain->must_swap, p->segsize); in _nl_load_domain()
1288 W (domain->must_swap, p->sysdepref); in _nl_load_domain()
1318 for (i = 0; i < domain->hash_size; i++) in _nl_load_domain()
1320 W (domain->must_swap_hash_tab, domain->hash_tab[i]); in _nl_load_domain()
1325 nls_uint32 idx = hash_val % domain->hash_size; in _nl_load_domain()
1327 1 + (hash_val % (domain->hash_size - 2)); in _nl_load_domain()
1334 inmem_hash_tab[idx] = 1 + domain->nstrings + i; in _nl_load_domain()
1338 if (idx >= domain->hash_size - incr) in _nl_load_domain()
1339 idx -= domain->hash_size - incr; in _nl_load_domain()
1345 domain->n_sysdep_strings = n_inmem_sysdep_strings; in _nl_load_domain()
1346 domain->orig_sysdep_tab = inmem_orig_sysdep_tab; in _nl_load_domain()
1347 domain->trans_sysdep_tab = inmem_trans_sysdep_tab; in _nl_load_domain()
1349 domain->hash_tab = inmem_hash_tab; in _nl_load_domain()
1350 domain->must_swap_hash_tab = 0; in _nl_load_domain()
1354 domain->n_sysdep_strings = 0; in _nl_load_domain()
1355 domain->orig_sysdep_tab = NULL; in _nl_load_domain()
1356 domain->trans_sysdep_tab = NULL; in _nl_load_domain()
1363 domain->n_sysdep_strings = 0; in _nl_load_domain()
1364 domain->orig_sysdep_tab = NULL; in _nl_load_domain()
1365 domain->trans_sysdep_tab = NULL; in _nl_load_domain()
1375 free (domain->malloced); in _nl_load_domain()
1382 free (domain); in _nl_load_domain()
1390 nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding); in _nl_load_domain()
1393 EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals); in _nl_load_domain()
1400 _nl_unload_domain (struct loaded_domain *domain) in _nl_unload_domain() argument
1402 if (domain->plural != &__gettext_germanic_plural) in _nl_unload_domain()
1403 __gettext_free_exp (domain->plural); in _nl_unload_domain()
1405 _nl_free_domain_conv (domain); in _nl_unload_domain()
1407 free (domain->malloced); in _nl_unload_domain()
1410 if (domain->use_mmap) in _nl_unload_domain()
1411 munmap ((void *) domain->data, domain->mmap_size); in _nl_unload_domain()
1414 free ((void *) domain->data); in _nl_unload_domain()
1416 free (domain); in _nl_unload_domain()