/netbsd/external/ibm-public/postfix/dist/src/util/ |
H A D | dict_alloc.c | 92 dict->type, dict->name); in dict_default_lookup() 101 dict->type, dict->name); in dict_default_update() 109 dict->type, dict->name); in dict_default_delete() 118 dict->type, dict->name); in dict_default_sequence() 126 return (myflock(dict->lock_fd, dict->lock_type, operation)); in dict_default_lock() 137 dict->type, dict->name); in dict_default_close() 156 dict->lock_fd = -1; in dict_alloc() 158 dict->mtime = 0; in dict_alloc() 163 dict->jbuf = 0; in dict_alloc() 167 return dict; in dict_alloc() [all …]
|
H A D | dict_lmdb.c | 184 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_lookup() 203 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_lookup() 288 dict_lmdb->dict.type, dict_lmdb->dict.name, name); in dict_lmdb_update() 294 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_update() 357 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_delete() 377 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_delete() 461 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_sequence() 511 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_notify() 516 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_notify() 521 dict_lmdb->dict.type, dict_lmdb->dict.name, in dict_lmdb_notify() [all …]
|
H A D | dict_dbm.c | 88 dict->error = 0; in dict_dbm_lookup() 100 if (dict->fold_buf == 0) in dict_dbm_lookup() 160 dict->error = 0; in dict_dbm_update() 172 if (dict->fold_buf == 0) in dict_dbm_update() 243 dict->error = 0; in dict_dbm_delete() 255 if (dict->fold_buf == 0) in dict_dbm_delete() 323 dict->error = 0; in dict_dbm_sequence() 407 if (dict->fold_buf) in dict_dbm_close() 408 vstring_free(dict->fold_buf); in dict_dbm_close() 409 dict_free(dict); in dict_dbm_close() [all …]
|
H A D | dict_utf8.c | 117 if (dict->fold_buf == 0) in dict_utf8_check_fold() 151 dict->type, dict->name, key, utf8_err); in dict_utf8_lookup() 170 dict->type, dict->name, key, value, utf8_err); in dict_utf8_lookup() 193 dict->type, dict->name, key, utf8_err); in dict_utf8_update() 203 dict->type, dict->name, key, value, utf8_err); in dict_utf8_update() 214 backup = dict->utf8_backup; in dict_utf8_update() 236 dict->type, dict->name, key, utf8_err); in dict_utf8_delete() 268 myname, dict->type, dict->name); in dict_utf8_activate() 269 if ((dict->flags & DICT_FLAG_UTF8_ACTIVE) || dict->utf8_backup != 0) in dict_utf8_activate() 271 myname, dict->type, dict->name); in dict_utf8_activate() [all …]
|
H A D | dict_sdbm.c | 82 dict->error = 0; in dict_sdbm_lookup() 94 if (dict->fold_buf == 0) in dict_sdbm_lookup() 154 dict->error = 0; in dict_sdbm_update() 166 if (dict->fold_buf == 0) in dict_sdbm_update() 183 dict->flags &= ~DICT_FLAG_TRY1NULL; in dict_sdbm_update() 237 dict->error = 0; in dict_sdbm_delete() 249 if (dict->fold_buf == 0) in dict_sdbm_delete() 317 dict->error = 0; in dict_sdbm_sequence() 402 if (dict->fold_buf) in dict_sdbm_close() 403 vstring_free(dict->fold_buf); in dict_sdbm_close() [all …]
|
H A D | dict_file.c | 110 if (dict->file_buf == 0) in dict_file_to_buf() 157 if (dict->file_b64 == 0) in dict_file_to_b64() 166 return (base64_encode(dict->file_b64, STR(dict->file_buf), in dict_file_to_b64() 167 LEN(dict->file_buf))); in dict_file_to_b64() 177 if (dict->file_buf == 0) in dict_file_from_b64() 201 if (dict->file_buf) { in dict_file_purge_buffers() 203 dict->file_buf = 0; in dict_file_purge_buffers() 205 if (dict->file_b64) { in dict_file_purge_buffers() 207 dict->file_b64 = 0; in dict_file_purge_buffers() 223 if ((res = dict->lookup(dict, key)) == 0) in dict_file_lookup() [all …]
|
H A D | dict_ht.c | 57 DICT_HT *dict_ht = (DICT_HT *) dict; in dict_ht_delete() 63 if (dict->fold_buf == 0) 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() 88 vstring_strcpy(dict->fold_buf, name); in dict_ht_lookup() 106 if (dict->fold_buf == 0) in dict_ht_update() 108 vstring_strcpy(dict->fold_buf, name); in dict_ht_update() 145 static void dict_ht_close(DICT *dict) in dict_ht_close() argument 150 if (dict_ht->dict.fold_buf) in dict_ht_close() 152 dict_free(dict); in dict_ht_close() [all …]
|
H A D | dict.c | 294 dict = node->dict; \ 307 dict = node->dict; \ 347 DICT *dict = node->dict; in dict_node_free() local 350 dict->close(dict); in dict_node_free() 392 ret = dict->lookup(dict, member); in dict_lookup() 414 return (dict ? dict->delete(dict, member) : DICT_STAT_FAIL); in dict_delete() 428 return (dict ? dict->sequence(dict, func, member, value) : DICT_STAT_FAIL); in dict_sequence() 504 if ((old = dict->lookup(dict, member)) != 0 in dict_load_fp() 508 if (dict->update(dict, member, val) != 0) in dict_load_fp() 531 && (pp = dict->lookup(dict, key)) == 0 && dict->error != 0) in dict_eval_lookup() [all …]
|
H A D | dict_debug.c | 64 real_dict->flags = dict->flags; in dict_debug_lookup() 66 dict->flags = real_dict->flags; in dict_debug_lookup() 67 msg_info("%s:%s lookup: \"%s\" = \"%s\"", dict->type, dict->name, key, in dict_debug_lookup() 80 real_dict->flags = dict->flags; in dict_debug_update() 82 dict->flags = real_dict->flags; in dict_debug_update() 83 msg_info("%s:%s update: \"%s\" = \"%s\": %s", dict->type, dict->name, in dict_debug_update() 100 msg_info("%s:%s delete: \"%s\": %s", dict->type, dict->name, key, in dict_debug_delete() 119 msg_info("%s:%s sequence: \"%s\" = \"%s\"", dict->type, dict->name, in dict_debug_sequence() 122 msg_info("%s:%s sequence: found EOF", dict->type, dict->name); in dict_debug_sequence() 133 dict_free(dict); in dict_debug_close() [all …]
|
H A D | dict_db.c | 190 dict->error = 0; in dict_db_lookup() 205 if (dict->fold_buf == 0) in dict_db_lookup() 268 dict->error = 0; in dict_db_update() 280 if (dict->fold_buf == 0) in dict_db_update() 358 dict->error = 0; in dict_db_delete() 370 if (dict->fold_buf == 0) in dict_db_delete() 436 dict->error = 0; in dict_db_sequence() 565 dict_db->dict.name); in dict_db_close() 573 if (dict->fold_buf) in dict_db_close() 574 vstring_free(dict->fold_buf); in dict_db_close() [all …]
|
H A D | dict_cdb.c | 109 dict->error = 0; in dict_cdbq_lookup() 117 if (dict->fold_buf == 0) in dict_cdbq_lookup() 172 close(dict->stat_fd); in dict_cdbq_close() 173 if (dict->fold_buf) in dict_cdbq_close() 174 vstring_free(dict->fold_buf); in dict_cdbq_close() 175 dict_free(dict); in dict_cdbq_close() 251 dict->error = 0; in dict_cdbm_update() 257 if (dict->fold_buf == 0) in dict_cdbm_update() 329 if (dict->fold_buf) in dict_cdbm_close() 330 vstring_free(dict->fold_buf); in dict_cdbm_close() [all …]
|
H A D | dict_env.c | 55 dict->error = 0; in dict_env_update() 61 if (dict->fold_buf == 0) in dict_env_update() 76 dict->error = 0; in dict_env_lookup() 82 if (dict->fold_buf == 0) in dict_env_lookup() 94 if (dict->fold_buf) in dict_env_close() 95 vstring_free(dict->fold_buf); in dict_env_close() 96 dict_free(dict); in dict_env_close() 103 DICT *dict; in dict_env_open() local 105 dict = dict_alloc(DICT_TYPE_ENVIRON, name, sizeof(*dict)); in dict_env_open() 108 dict->close = dict_env_close; in dict_env_open() [all …]
|
H A D | dict_surrogate.c | 72 DICT dict; /* generic members */ member 84 dict->type, dict->name, dp->reason); in dict_surrogate_sequence() 96 dict->type, dict->name, dp->reason); in dict_surrogate_update() 107 dict->type, dict->name, dp->reason); in dict_surrogate_lookup() 118 dict->type, dict->name, dp->reason); in dict_surrogate_delete() 124 static void dict_surrogate_close(DICT *dict) in dict_surrogate_close() argument 129 dict_free(dict); in dict_surrogate_close() 169 dp->dict.update = dict_surrogate_update; in dict_surrogate() 170 dp->dict.delete = dict_surrogate_delete; in dict_surrogate() 173 dp->dict.close = dict_surrogate_close; in dict_surrogate() [all …]
|
H A D | dict_nis.c | 68 DICT dict; /* generic members */ member 149 dict->error = 0; in dict_nis_lookup() 164 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() 179 dict->flags &= ~DICT_FLAG_TRY0NULL; in dict_nis_lookup() 210 dict->error = DICT_ERR_RETRY; in dict_nis_lookup() 217 static void dict_nis_close(DICT *dict) in dict_nis_close() argument 219 if (dict->fold_buf) in dict_nis_close() 220 vstring_free(dict->fold_buf); in dict_nis_close() [all …]
|
H A D | dict_fail.c | 46 DICT dict; /* generic members */ member 55 DICT_FAIL *dp = (DICT_FAIL *) dict; in dict_fail_sequence() 66 DICT_FAIL *dp = (DICT_FAIL *) dict; in dict_fail_update() 76 DICT_FAIL *dp = (DICT_FAIL *) dict; in dict_fail_lookup() 86 DICT_FAIL *dp = (DICT_FAIL *) dict; in dict_fail_delete() 94 static void dict_fail_close(DICT *dict) in dict_fail_close() argument 96 dict_free(dict); in dict_fail_close() 108 dp->dict.update = dict_fail_update; in dict_fail_open() 109 dp->dict.delete = dict_fail_delete; in dict_fail_open() 112 dp->dict.close = dict_fail_close; in dict_fail_open() [all …]
|
H A D | dict_unix.c | 74 dict->error = 0; in dict_unix_getpwnam() 80 if (dict->fold_buf == 0) in dict_unix_getpwnam() 82 vstring_strcpy(dict->fold_buf, key); in dict_unix_getpwnam() 91 dict->error = DICT_ERR_RETRY; in dict_unix_getpwnam() 116 dict->error = 0; in dict_unix_getgrnam() 122 if (dict->fold_buf == 0) in dict_unix_getgrnam() 124 vstring_strcpy(dict->fold_buf, key); in dict_unix_getgrnam() 133 dict->error = DICT_ERR_RETRY; in dict_unix_getgrnam() 157 if (dict->fold_buf) in dict_unix_close() 158 vstring_free(dict->fold_buf); in dict_unix_close() [all …]
|
/netbsd/crypto/external/bsd/libsaslc/dist/test/ |
H A D | t_dict.c | 57 saslc__dict_t *dict; in ATF_TC_BODY() local 59 saslc__dict_destroy(dict); in ATF_TC_BODY() 72 saslc__dict_t *dict; in ATF_TC_BODY() local 79 ATF_CHECK_EQ(saslc__dict_insert(dict, in ATF_TC_BODY() 86 saslc__dict_destroy(dict); in ATF_TC_BODY() 99 saslc__dict_t *dict; in ATF_TC_BODY() local 119 saslc__dict_destroy(dict); in ATF_TC_BODY() 132 saslc__dict_t *dict; in ATF_TC_BODY() local 149 saslc__dict_destroy(dict); in ATF_TC_BODY() 162 saslc__dict_t *dict; in ATF_TC_BODY() local [all …]
|
/netbsd/external/public-domain/xz/dist/src/liblzma/lz/ |
H A D | lz_decoder.h | 142 dict->buf[dict->pos] = dict_get(dict, distance); in dict_repeat() 163 memmove(dict->buf + dict->pos, dict->buf + copy_pos, in dict_repeat() 167 memcpy(dict->buf + dict->pos, dict->buf, copy_size); in dict_repeat() 170 memmove(dict->buf + dict->pos, dict->buf + copy_pos, in dict_repeat() 177 if (dict->full < dict->pos) in dict_repeat() 178 dict->full = dict->pos; in dict_repeat() 194 if (dict->pos > dict->full) in dict_put() 195 dict->full = dict->pos; in dict_put() 218 dict->buf, &dict->pos, dict->limit); in dict_write() 220 if (dict->pos > dict->full) in dict_write() [all …]
|
/netbsd/crypto/external/bsd/heimdal/dist/lib/base/ |
H A D | dict.c | 58 for (h = dict->tab; h < &dict->tab[dict->size]; ++h) { in dict_dealloc() 66 free(dict->tab); in dict_dealloc() 119 dict = _heim_alloc_object(&dict_object, sizeof(*dict)); in heim_dict_create() 123 heim_release(dict); in heim_dict_create() 127 dict->tab = calloc(dict->size, sizeof(dict->tab[0])); in heim_dict_create() 129 dict->size = 0; in heim_dict_create() 134 return dict; in heim_dict_create() 157 for (p = dict->tab[v % dict->size]; p != NULL; p = p->next) in _search() 235 tabptr = &dict->tab[v % dict->size]; in heim_dict_set_value() 283 for (h = dict->tab; h < &dict->tab[dict->size]; ++h) in heim_dict_iterate_f() [all …]
|
/netbsd/external/gpl3/gdb/dist/gdb/ |
H A D | dictionary.c | 442 (DICT_VECTOR (dict))->free (dict); in dict_free() 450 (DICT_VECTOR (dict))->add_symbol (dict, sym); in dict_add_symbol() 472 return (DICT_VECTOR (dict))->iterator_first (dict, iterator); in dict_iterator_first() 490 return (DICT_VECTOR (dict))->iter_match_first (dict, name, iterator); in dict_iter_match_first() 504 return (DICT_VECTOR (dict))->size (dict); in dict_size() 663 xfree (dict); in free_hashed_expandable() 799 return DICT_LINEAR_NSYMS (dict) ? DICT_LINEAR_SYM (dict, 0) : NULL; in iterator_first_linear() 864 xfree (dict); in free_linear_expandable() 1118 struct dictionary *dict 1121 if (dict == nullptr) [all …]
|
/netbsd/external/gpl3/gdb.old/dist/gdb/ |
H A D | dictionary.c | 442 (DICT_VECTOR (dict))->free (dict); in dict_free() 450 (DICT_VECTOR (dict))->add_symbol (dict, sym); in dict_add_symbol() 472 return (DICT_VECTOR (dict))->iterator_first (dict, iterator); in dict_iterator_first() 490 return (DICT_VECTOR (dict))->iter_match_first (dict, name, iterator); in dict_iter_match_first() 504 return (DICT_VECTOR (dict))->size (dict); in dict_size() 663 xfree (dict); in free_hashed_expandable() 799 return DICT_LINEAR_NSYMS (dict) ? DICT_LINEAR_SYM (dict, 0) : NULL; in iterator_first_linear() 864 xfree (dict); in free_linear_expandable() 1118 struct dictionary *dict 1121 if (dict == nullptr) [all …]
|
/netbsd/external/ibm-public/postfix/dist/src/global/ |
H A D | dict_proxy.c | 79 DICT dict; /* generic members */ member 132 | (dict->flags & DICT_FLAG_RQST_MASK); in dict_proxy_sequence() 165 dict_proxy->service, dict->name); in dict_proxy_sequence() 211 | (dict->flags & DICT_FLAG_RQST_MASK); in dict_proxy_lookup() 233 myname, dict->name, in dict_proxy_lookup() 243 dict_proxy->service, dict->name); in dict_proxy_lookup() 282 | (dict->flags & DICT_FLAG_RQST_MASK); in dict_proxy_update() 313 dict_proxy->service, dict->name); in dict_proxy_update() 352 | (dict->flags & DICT_FLAG_RQST_MASK); in dict_proxy_delete() 383 dict_proxy->service, dict->name); in dict_proxy_delete() [all …]
|
/netbsd/common/lib/libprop/ |
H A D | prop_dictionary_util.c | 50 o = prop_dictionary_get(dict, key); in prop_dictionary_get_dict() 63 b = prop_dictionary_get(dict, key); in prop_dictionary_get_bool() 86 prop_dictionary_get(dict, key), valp); \ 116 return prop_dictionary_set_and_rel(dict, key, in TEMPLATE() 125 return prop_dictionary_set_and_rel(dict, key, in prop_dictionary_set_unsigned_number() 175 str = prop_dictionary_get(dict, key); in STEMPLATE() 191 return prop_dictionary_set_and_rel(dict, key, in prop_dictionary_set_string() 200 return prop_dictionary_set_and_rel(dict, key, in prop_dictionary_set_string_nocopy() 211 data = prop_dictionary_get(dict, key); in prop_dictionary_get_data() 254 str = prop_dictionary_get(dict, key); in prop_dictionary_get_cstring() [all …]
|
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.guile/ |
H A D | scm-pretty-print.scm | 242 (let ((dict (make-hash-table))) 244 (hash-set! dict "s" make-pp_s-printer) 245 (hash-set! dict "S" make-pp_s-printer) 248 (hash-set! dict "ss" make-pp_ss-printer) 250 (hash-set! dict "SSS" make-pp_sss-printer) 270 (hash-set! dict "ns" make-pp_ns-printer) 281 (hash-set! dict "struct children_as_list" 289 dict)) 304 (hash-ref dict type-name)))) 328 (dict (make-hash-table))) [all …]
|
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.guile/ |
H A D | scm-pretty-print.scm | 242 (let ((dict (make-hash-table))) 244 (hash-set! dict "s" make-pp_s-printer) 245 (hash-set! dict "S" make-pp_s-printer) 248 (hash-set! dict "ss" make-pp_ss-printer) 250 (hash-set! dict "SSS" make-pp_sss-printer) 270 (hash-set! dict "ns" make-pp_ns-printer) 281 (hash-set! dict "struct children_as_list" 289 dict)) 304 (hash-ref dict type-name)))) 328 (dict (make-hash-table))) [all …]
|