Home
last modified time | relevance | path

Searched refs:fold_buf (Results 1 – 25 of 27) sorted by relevance

12

/netbsd/external/ibm-public/postfix/dist/src/util/
H A Ddict_ht.c63 if (dict->fold_buf == 0) in dict_ht_delete()
64 dict->fold_buf = vstring_alloc(10); in dict_ht_delete()
65 vstring_strcpy(dict->fold_buf, name); in dict_ht_delete()
86 if (dict->fold_buf == 0) in dict_ht_lookup()
87 dict->fold_buf = vstring_alloc(10); in dict_ht_lookup()
88 vstring_strcpy(dict->fold_buf, name); in dict_ht_lookup()
106 if (dict->fold_buf == 0) in dict_ht_update()
107 dict->fold_buf = vstring_alloc(10); in dict_ht_update()
108 vstring_strcpy(dict->fold_buf, name); in dict_ht_update()
150 if (dict_ht->dict.fold_buf) in dict_ht_close()
[all …]
H A Ddict_env.c61 if (dict->fold_buf == 0) in dict_env_update()
62 dict->fold_buf = vstring_alloc(10); in dict_env_update()
63 vstring_strcpy(dict->fold_buf, name); in dict_env_update()
64 name = lowercase(vstring_str(dict->fold_buf)); in dict_env_update()
82 if (dict->fold_buf == 0) in dict_env_lookup()
83 dict->fold_buf = vstring_alloc(10); in dict_env_lookup()
84 vstring_strcpy(dict->fold_buf, name); in dict_env_lookup()
85 name = lowercase(vstring_str(dict->fold_buf)); in dict_env_lookup()
94 if (dict->fold_buf) in dict_env_close()
95 vstring_free(dict->fold_buf); in dict_env_close()
[all …]
H A Ddict_unix.c80 if (dict->fold_buf == 0) in dict_unix_getpwnam()
81 dict->fold_buf = vstring_alloc(10); in dict_unix_getpwnam()
82 vstring_strcpy(dict->fold_buf, key); in dict_unix_getpwnam()
83 key = lowercase(vstring_str(dict->fold_buf)); in dict_unix_getpwnam()
122 if (dict->fold_buf == 0) in dict_unix_getgrnam()
123 dict->fold_buf = vstring_alloc(10); in dict_unix_getgrnam()
124 vstring_strcpy(dict->fold_buf, key); in dict_unix_getgrnam()
125 key = lowercase(vstring_str(dict->fold_buf)); in dict_unix_getgrnam()
157 if (dict->fold_buf) in dict_unix_close()
158 vstring_free(dict->fold_buf); in dict_unix_close()
[all …]
H A Ddict_cdb.c117 if (dict->fold_buf == 0) in dict_cdbq_lookup()
118 dict->fold_buf = vstring_alloc(10); in dict_cdbq_lookup()
119 vstring_strcpy(dict->fold_buf, name); in dict_cdbq_lookup()
120 name = lowercase(vstring_str(dict->fold_buf)); in dict_cdbq_lookup()
173 if (dict->fold_buf) in dict_cdbq_close()
174 vstring_free(dict->fold_buf); in dict_cdbq_close()
257 if (dict->fold_buf == 0) in dict_cdbm_update()
258 dict->fold_buf = vstring_alloc(10); in dict_cdbm_update()
259 vstring_strcpy(dict->fold_buf, name); in dict_cdbm_update()
329 if (dict->fold_buf) in dict_cdbm_close()
[all …]
H A Ddict_dbm.c100 if (dict->fold_buf == 0) in dict_dbm_lookup()
101 dict->fold_buf = vstring_alloc(10); in dict_dbm_lookup()
102 vstring_strcpy(dict->fold_buf, name); in dict_dbm_lookup()
172 if (dict->fold_buf == 0) in dict_dbm_update()
173 dict->fold_buf = vstring_alloc(10); in dict_dbm_update()
174 vstring_strcpy(dict->fold_buf, name); in dict_dbm_update()
255 if (dict->fold_buf == 0) in dict_dbm_delete()
256 dict->fold_buf = vstring_alloc(10); in dict_dbm_delete()
257 vstring_strcpy(dict->fold_buf, name); in dict_dbm_delete()
407 if (dict->fold_buf) in dict_dbm_close()
[all …]
H A Ddict_sdbm.c94 if (dict->fold_buf == 0) in dict_sdbm_lookup()
95 dict->fold_buf = vstring_alloc(10); in dict_sdbm_lookup()
96 vstring_strcpy(dict->fold_buf, name); in dict_sdbm_lookup()
166 if (dict->fold_buf == 0) in dict_sdbm_update()
167 dict->fold_buf = vstring_alloc(10); in dict_sdbm_update()
168 vstring_strcpy(dict->fold_buf, name); in dict_sdbm_update()
249 if (dict->fold_buf == 0) in dict_sdbm_delete()
250 dict->fold_buf = vstring_alloc(10); in dict_sdbm_delete()
251 vstring_strcpy(dict->fold_buf, name); in dict_sdbm_delete()
402 if (dict->fold_buf) in dict_sdbm_close()
[all …]
H A Ddict_nis.c164 if (dict->fold_buf == 0) in dict_nis_lookup()
165 dict->fold_buf = vstring_alloc(10); in dict_nis_lookup()
166 vstring_strcpy(dict->fold_buf, key); in dict_nis_lookup()
167 key = lowercase(vstring_str(dict->fold_buf)); in dict_nis_lookup()
219 if (dict->fold_buf) in dict_nis_close()
220 vstring_free(dict->fold_buf); in dict_nis_close()
242 dict_nis->dict.fold_buf = vstring_alloc(10); in dict_nis_open()
H A Ddict_ni.c160 if (dict->fold_buf == 0) in dict_ni_lookup()
161 dict->fold_buf = vstring_alloc(10); in dict_ni_lookup()
162 vstring_strcpy(dict->fold_buf, key); in dict_ni_lookup()
163 key = lowercase(vstring_str(dict->fold_buf)); in dict_ni_lookup()
175 if (dict->fold_buf) in dict_ni_close()
176 vstring_free(dict->fold_buf); in dict_ni_close()
190 d->dict.fold_buf = vstring_alloc(10); in dict_ni_open()
H A Ddict_lmdb.c157 if (dict->fold_buf == 0) in dict_lmdb_lookup()
158 dict->fold_buf = vstring_alloc(10); in dict_lmdb_lookup()
159 vstring_strcpy(dict->fold_buf, name); in dict_lmdb_lookup()
239 if (dict->fold_buf == 0) in dict_lmdb_update()
240 dict->fold_buf = vstring_alloc(10); in dict_lmdb_update()
241 vstring_strcpy(dict->fold_buf, name); in dict_lmdb_update()
331 if (dict->fold_buf == 0) in dict_lmdb_delete()
332 dict->fold_buf = vstring_alloc(10); in dict_lmdb_delete()
333 vstring_strcpy(dict->fold_buf, name); in dict_lmdb_delete()
486 if (dict->fold_buf) in dict_lmdb_close()
[all …]
H A Ddict_nisplus.c146 if (dict->fold_buf == 0) in dict_nisplus_lookup()
147 dict->fold_buf = vstring_alloc(10); in dict_nisplus_lookup()
148 vstring_strcpy(dict->fold_buf, key); in dict_nisplus_lookup()
149 key = lowercase(vstring_str(dict->fold_buf)); in dict_nisplus_lookup()
245 if (dict->fold_buf) in dict_nisplus_close()
246 vstring_free(dict->fold_buf); in dict_nisplus_close()
276 dict_nisplus->dict.fold_buf = vstring_alloc(10); in dict_nisplus_open()
H A Ddict_tcp.c173 if (dict->fold_buf == 0) in dict_tcp_lookup()
174 dict->fold_buf = vstring_alloc(10); in dict_tcp_lookup()
175 vstring_strcpy(dict->fold_buf, key); in dict_tcp_lookup()
176 key = lowercase(vstring_str(dict->fold_buf)); in dict_tcp_lookup()
280 if (dict->fold_buf) in dict_tcp_close()
281 vstring_free(dict->fold_buf); in dict_tcp_close()
314 dict_tcp->dict.fold_buf = vstring_alloc(10); in dict_tcp_open()
H A Dmatch_list.c188 casefold(match_list->fold_buf, match ? in match_list_parse()
190 argv_add(pat_list, STR(match_list->fold_buf), (char *) 0); in match_list_parse()
223 list->fold_buf = vstring_alloc(20); in match_list_init()
259 casefold(list->fold_buf, list->match_args[i]); in match_list_match()
260 if (list->match_func[i] (list, STR(list->fold_buf), pat)) in match_list_match()
281 vstring_free(list->fold_buf); in match_list_free()
H A Ddict_db.c205 if (dict->fold_buf == 0) in dict_db_lookup()
206 dict->fold_buf = vstring_alloc(10); in dict_db_lookup()
207 vstring_strcpy(dict->fold_buf, name); in dict_db_lookup()
280 if (dict->fold_buf == 0) in dict_db_update()
281 dict->fold_buf = vstring_alloc(10); in dict_db_update()
282 vstring_strcpy(dict->fold_buf, name); in dict_db_update()
370 if (dict->fold_buf == 0) in dict_db_delete()
371 dict->fold_buf = vstring_alloc(10); in dict_db_delete()
372 vstring_strcpy(dict->fold_buf, name); in dict_db_delete()
573 if (dict->fold_buf) in dict_db_close()
[all …]
H A Ddict_sockmap.c181 if (dict->fold_buf == 0) in dict_sockmap_lookup()
182 dict->fold_buf = vstring_alloc(100); in dict_sockmap_lookup()
183 vstring_strcpy(dict->fold_buf, key); in dict_sockmap_lookup()
184 key = lowercase(STR(dict->fold_buf)); in dict_sockmap_lookup()
304 if (dict->fold_buf) in dict_sockmap_close()
305 vstring_free(dict->fold_buf); in dict_sockmap_close()
H A Dcasefold.c139 static VSTRING *fold_buf = 0; in casefoldx() local
151 dest = (fold_buf != 0 ? fold_buf : (fold_buf = vstring_alloc(100))); in casefoldx()
H A Ddict_utf8.c117 if (dict->fold_buf == 0) in dict_utf8_check_fold()
118 dict->fold_buf = vstring_alloc(10); in dict_utf8_check_fold()
119 return (casefold(dict->fold_buf, string)); in dict_utf8_check_fold()
H A Ddict_regexp.c237 if (dict->fold_buf == 0) in dict_regexp_lookup()
238 dict->fold_buf = vstring_alloc(10); in dict_regexp_lookup()
239 vstring_strcpy(dict->fold_buf, lookup_string); in dict_regexp_lookup()
240 lookup_string = lowercase(vstring_str(dict->fold_buf)); in dict_regexp_lookup()
368 if (dict->fold_buf) in dict_regexp_close()
369 vstring_free(dict->fold_buf); in dict_regexp_close()
806 dict_regexp->dict.fold_buf = vstring_alloc(10); in dict_regexp_open()
H A Ddict_static.c78 if (dict->fold_buf) in dict_static_close()
79 vstring_free(dict->fold_buf); in dict_static_close()
H A Ddict_pcre.c436 if (dict->fold_buf == 0) in dict_pcre_lookup()
437 dict->fold_buf = vstring_alloc(10); in dict_pcre_lookup()
438 vstring_strcpy(dict->fold_buf, lookup_string); in dict_pcre_lookup()
439 lookup_string = lowercase(vstring_str(dict->fold_buf)); in dict_pcre_lookup()
553 if (dict->fold_buf) in dict_pcre_close()
554 vstring_free(dict->fold_buf); in dict_pcre_close()
1056 dict_pcre->dict.fold_buf = vstring_alloc(10); in dict_pcre_open()
H A Dmatch_list.h36 VSTRING *fold_buf; /* case-folded pattern string */ member
/netbsd/external/ibm-public/postfix/dist/src/global/
H A Ddict_sqlite.c142 if (dict->fold_buf) in dict_sqlite_close()
143 vstring_free(dict->fold_buf); in dict_sqlite_close()
182 if (dict->fold_buf == 0) in dict_sqlite_lookup()
183 dict->fold_buf = vstring_alloc(100); in dict_sqlite_lookup()
184 vstring_strcpy(dict->fold_buf, name); in dict_sqlite_lookup()
185 name = lowercase(vstring_str(dict->fold_buf)); in dict_sqlite_lookup()
H A Ddict_pgsql.c367 if (dict->fold_buf == 0) in dict_pgsql_lookup()
368 dict->fold_buf = vstring_alloc(10); in dict_pgsql_lookup()
369 vstring_strcpy(dict->fold_buf, name); in dict_pgsql_lookup()
370 name = lowercase(vstring_str(dict->fold_buf)); in dict_pgsql_lookup()
769 dict_pgsql->dict.fold_buf = vstring_alloc(10); in pgsql_parse_config()
903 if (dict->fold_buf) in dict_pgsql_close()
904 vstring_free(dict->fold_buf); in dict_pgsql_close()
H A Ddict_memcache.c269 if (dict_mc->dict.fold_buf == 0) in dict_memcache_prepare_key()
270 dict_mc->dict.fold_buf = vstring_alloc(10); in dict_memcache_prepare_key()
271 vstring_strcpy(dict_mc->dict.fold_buf, name); in dict_memcache_prepare_key()
272 name = lowercase(STR(dict_mc->dict.fold_buf)); in dict_memcache_prepare_key()
493 if (dict->fold_buf) in dict_memcache_close()
494 vstring_free(dict->fold_buf); in dict_memcache_close()
H A Ddict_mysql.c347 if (dict->fold_buf == 0) in dict_mysql_lookup()
348 dict->fold_buf = vstring_alloc(10); in dict_mysql_lookup()
349 vstring_strcpy(dict->fold_buf, name); in dict_mysql_lookup()
350 name = lowercase(vstring_str(dict->fold_buf)); in dict_mysql_lookup()
791 dict_mysql->dict.fold_buf = vstring_alloc(10); in mysql_parse_config()
942 if (dict->fold_buf) in dict_mysql_close()
943 vstring_free(dict->fold_buf); in dict_mysql_close()
H A Ddict_ldap.c1362 if (dict->fold_buf == 0) in dict_ldap_lookup()
1363 dict->fold_buf = vstring_alloc(10); in dict_ldap_lookup()
1364 vstring_strcpy(dict->fold_buf, name); in dict_ldap_lookup()
1365 name = lowercase(vstring_str(dict->fold_buf)); in dict_ldap_lookup()
1613 if (dict->fold_buf) in dict_ldap_close()
1614 vstring_free(dict->fold_buf); in dict_ldap_close()
1814 dict_ldap->dict.fold_buf = vstring_alloc(10); in dict_ldap_open()

12