/dragonfly/contrib/xz/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 …]
|
H A D | lz_decoder.c | 25 lzma_dict dict; member 57 coder->dict.pos = 0; in lz_decoder_reset() 58 coder->dict.full = 0; in lz_decoder_reset() 59 coder->dict.buf[coder->dict.size - 1] = '\0'; in lz_decoder_reset() 73 if (coder->dict.pos == coder->dict.size) in decode_buffer() 74 coder->dict.pos = 0; in decode_buffer() 84 coder->dict.limit = coder->dict.pos in decode_buffer() 86 coder->dict.size - coder->dict.pos); in decode_buffer() 126 || coder->dict.pos < coder->dict.size) in decode_buffer() 230 coder->dict.size = 0; in lzma_lz_decoder_init() [all …]
|
H A D | lz_encoder.h | 312 extern uint32_t lzma_mf_hc3_find(lzma_mf *dict, lzma_match *matches); 313 extern void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount); 315 extern uint32_t lzma_mf_hc4_find(lzma_mf *dict, lzma_match *matches); 316 extern void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount); 318 extern uint32_t lzma_mf_bt2_find(lzma_mf *dict, lzma_match *matches); 319 extern void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount); 321 extern uint32_t lzma_mf_bt3_find(lzma_mf *dict, lzma_match *matches); 322 extern void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount); 324 extern uint32_t lzma_mf_bt4_find(lzma_mf *dict, lzma_match *matches); 325 extern void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount);
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | dictionary.c | 490 (DICT_VECTOR (dict))->free (dict); in dict_free() 498 (DICT_VECTOR (dict))->add_symbol (dict, sym); in dict_add_symbol() 524 return (DICT_VECTOR (dict))->iterator_first (dict, iterator); in dict_iterator_first() 556 return (DICT_VECTOR (dict))->iter_match_first (dict, name, in dict_iter_match_first() 571 return (DICT_VECTOR (dict))->size (dict); in dict_size() 731 xfree (dict); in free_hashed_expandable() 741 expand_hashtable (dict); in add_symbol_hashed_expandable() 871 return DICT_LINEAR_NSYMS (dict) ? DICT_LINEAR_SYM (dict, 0) : NULL; in iterator_first_linear() 922 return DICT_LINEAR_NSYMS (dict); in size_linear() 931 xfree (dict); in free_linear_expandable() [all …]
|
H A D | dictionary.h | 82 extern void dict_free (struct dictionary *dict); 86 extern void dict_add_symbol (struct dictionary *dict, struct symbol *sym); 90 extern void dict_add_pending (struct dictionary *dict, 95 extern int dict_empty (struct dictionary *dict); 105 const struct dictionary *dict; member 115 extern struct symbol *dict_iterator_first (const struct dictionary *dict, 129 extern struct symbol *dict_iter_name_first (const struct dictionary *dict, 150 extern struct symbol *dict_iter_match_first (const struct dictionary *dict, 170 extern int dict_size (const struct dictionary *dict); 179 #define ALL_DICT_SYMBOLS(dict, iter, sym) \ argument [all …]
|
/dragonfly/sys/kern/ |
H A D | kern_udev.c | 253 if (dict == NULL) { in udev_init_dict_event() 269 return dict; in udev_init_dict_event() 294 if (dict == NULL) { in udev_dict_set_cstr() 331 if (dict == NULL) { in udev_dict_set_int() 366 if (dict == NULL) { in udev_dict_set_uint() 399 if (dict == NULL) { in udev_dict_delete_key() 435 if (dict == NULL) { in udev_init_dict() 470 dev->si_dict = dict; in udev_init_dict() 555 if (dict == NULL) { in udev_event_externalize() 596 if (dict == NULL) in udev_event_attach() [all …]
|
/dragonfly/sbin/hammer/ |
H A D | cmd_recover.c | 459 if (dict->parent && in recover_elm() 527 if (dict->size >= 0 && file_offset > dict->size) { in recover_elm() 630 for (dict = RDHash[i]; dict; dict = dict->next) { in get_dict() 631 if (dict->obj_id == obj_id && dict->pfs_id == pfs_id) in get_dict() 635 if (dict == NULL) { in get_dict() 636 dict = malloc(sizeof(*dict)); in get_dict() 637 bzero(dict, sizeof(*dict)); in get_dict() 641 dict->size = -1; in get_dict() 642 RDHash[i] = dict; in get_dict() 654 return(dict); in get_dict() [all …]
|
/dragonfly/sbin/udevd/ |
H A D | test_udevd.c | 48 prop_dictionary_t dict; member 62 prop_dictionary_t dict; member 219 le->dict = dict; in udev_enumerate_get_list_entry() 328 prop_dictionary_t dict; in udev_monitor_receive_device() local 345 if (dict == NULL) in udev_monitor_receive_device() 362 udev_dev->dict = prop_dictionary_get(dict, "evdict"); in udev_monitor_receive_device() 381 if (dict == NULL) in udev_monitor_enable_receiving() 501 if (dict == NULL) in _udev_monitor_filter_add_match_gen() 707 if (dict == NULL) in udevd_get_command_dict() 713 return dict; in udevd_get_command_dict() [all …]
|
H A D | udevd_client.c | 96 prop_dictionary_t dict; in client_thread() local 120 dict = prop_dictionary_internalize(xml); in client_thread() 123 if (dict == NULL) { in client_thread() 128 po = prop_dictionary_get(dict, "command"); in client_thread() 131 prop_object_release(dict); in client_thread() 144 error = cmd_fn[n].fn(cli, dict); in client_thread() 146 prop_object_release(dict); in client_thread() 150 prop_object_release(dict); in client_thread() 168 prop_dictionary_t dict; in client_cmd_getdevs() local 206 if (match_event_filter(udm, dict)) { in client_cmd_getdevs() [all …]
|
H A D | udevd.c | 93 if (dict == NULL) in match_dev_dict() 126 prop_dictionary_t dict; in find_dev_dict() local 146 if (match_dev_dict(dict, match_dict)) in find_dev_dict() 157 return dict; in find_dev_dict() 164 prop_dictionary_t dict, evdict, devdict; in udev_read_event() local 190 dict = prop_dictionary_internalize(xml); in udev_read_event() 192 if (dict == NULL) { in udev_read_event() 197 pn = prop_dictionary_get(dict, "evtype"); in udev_read_event() 213 monitor_queue_event(dict); in udev_read_event() 224 monitor_queue_event(dict); in udev_read_event() [all …]
|
/dragonfly/usr.bin/dfregress/ |
H A D | testcase.c | 58 prop_dictionary_t dict, testcase_dict; in testcase_from_struct() local 96 dict = prop_dictionary_create(); in testcase_from_struct() 97 if (dict == NULL) in testcase_from_struct() 100 r = prop_dictionary_set_int32(dict, "timeout_in_secs", in testcase_from_struct() 105 r = prop_dictionary_set_int32(dict, "rc", in testcase_from_struct() 115 r = prop_dictionary_set_cstring(dict, "pre_cmd", in testcase_from_struct() 122 r = prop_dictionary_set_cstring(dict, "post_cmd", in testcase_from_struct() 129 r = prop_dictionary_set_cstring(dict, "interpreter", in testcase_from_struct() 135 r = prop_dictionary_set_uint32(dict, "runas_uid", in testcase_from_struct() 140 r = prop_dictionary_set_cstring(dict, "make_cmd", in testcase_from_struct() [all …]
|
/dragonfly/lib/libdevattr/ |
H A D | devattr_monitor.c | 150 if (dict == NULL) in udev_monitor_receive_device() 155 prop_object_release(dict); in udev_monitor_receive_device() 161 prop_object_release(dict); in udev_monitor_receive_device() 167 prop_object_release(dict); in udev_monitor_receive_device() 173 prop_object_release(dict); in udev_monitor_receive_device() 180 prop_dictionary_t dict; in udev_monitor_enable_receiving() local 186 if (dict == NULL) in udev_monitor_enable_receiving() 199 prop_object_release(dict); in udev_monitor_enable_receiving() 298 prop_dictionary_t dict; in _udev_filter_add_match_gen() local 307 if (dict == NULL) in _udev_filter_add_match_gen() [all …]
|
H A D | devattr_device.c | 65 prop_dictionary_t dict; member 82 if (dict != NULL) in udev_device_new_from_dictionary() 83 prop_object_retain(dict); in udev_device_new_from_dictionary() 85 udev_dev->dict = dict; in udev_device_new_from_dictionary() 108 if (udev_device->dict != NULL) in udev_device_unref() 150 if (udev_device->dict == NULL) in udev_device_get_devnum() 168 if (udev_device->dict == NULL) in udev_device_get_kptr() 186 if (udev_device->dict == NULL) in udev_device_get_major() 204 if (udev_device->dict == NULL) in udev_device_get_minor() 238 if (udev_device->dict == NULL) in udev_device_get_property_value() [all …]
|
H A D | devattr.c | 197 if (prop_dictionary_set(dict, key, ps) == false) { in _udev_dict_set_cstr() 265 prop_dictionary_t dict; in udevd_get_command_dict() local 268 dict = prop_dictionary_create(); in udevd_get_command_dict() 269 if (dict == NULL) in udevd_get_command_dict() 275 return dict; in udevd_get_command_dict() 278 prop_object_release(dict); in udevd_get_command_dict() 286 prop_dictionary_t dict; in udevd_request_devs() local 292 if (dict == NULL) in udevd_request_devs() 298 prop_object_release(dict); in udevd_request_devs() 303 xml = prop_dictionary_externalize(dict); in udevd_request_devs() [all …]
|
H A D | devattr_enumerate.c | 71 prop_dictionary_t dict; member 117 prop_object_release(le->dict); in udev_enumerate_unref() 158 prop_dictionary_t dict; in udev_enumerate_get_list_entry() local 168 while ((dict = prop_object_iterator_next(iter)) != NULL) { in udev_enumerate_get_list_entry() 173 prop_object_retain(dict); in udev_enumerate_get_list_entry() 174 le->dict = dict; in udev_enumerate_get_list_entry() 201 return list_entry->dict; in udev_list_entry_get_dictionary() 210 list_entry->dict); in udev_list_entry_get_device()
|
H A D | devattr_test.c | 14 prop_dictionary_t dict; in main() local 58 dict = udev_list_entry_get_dictionary(udev_le); in main() 59 printf("xml: %s\n\n\n", prop_dictionary_externalize(dict)); in main() 86 dict = udev_device_get_dictionary(udev_dev); in main() 87 printf("xml of new device: %s\n", prop_dictionary_externalize(dict)); in main()
|
/dragonfly/sys/libprop/ |
H A D | prop_dictionary_util.c | 48 o = prop_dictionary_get(dict, key); in prop_dictionary_get_dict() 57 prop_dictionary_get_bool(prop_dictionary_t dict, in prop_dictionary_get_bool() argument 63 b = prop_dictionary_get(dict, key); in prop_dictionary_get_bool() 83 rv = prop_dictionary_set(dict, key, b); in prop_dictionary_set_bool() 97 num = prop_dictionary_get(dict, key); \ 124 num = prop_dictionary_get(dict, key); \ 153 rv = prop_dictionary_set(dict, key, num); \ 170 rv = prop_dictionary_set(dict, key, num); \ 191 str = prop_dictionary_get(dict, key); \ 211 rv = prop_dictionary_set(dict, key, str); \ [all …]
|
H A D | prop_kern.c | 98 prop_dictionary_externalize_to_pref(prop_dictionary_t dict, in prop_dictionary_externalize_to_pref() argument 104 rv = _prop_object_externalize_to_pref(dict, prefp, &buf); in prop_dictionary_externalize_to_pref() 115 prop_dictionary_send_syscall(prop_dictionary_t dict, in prop_dictionary_send_syscall() argument 118 if (prop_dictionary_externalize_to_pref(dict, prefp)) in prop_dictionary_send_syscall() 171 rv = _prop_object_send_ioctl(dict, fd, cmd); in prop_dictionary_send_ioctl() 333 prop_dictionary_sendrecv_ioctl(prop_dictionary_t dict, int fd, in prop_dictionary_sendrecv_ioctl() argument 340 error = _prop_object_externalize_to_pref(dict, &pref, &buf); in prop_dictionary_sendrecv_ioctl() 554 prop_dictionary_copyout(struct plistref *pref, prop_dictionary_t dict) in prop_dictionary_copyout() argument 556 return (_prop_object_copyout(pref, dict)); in prop_dictionary_copyout() 586 prop_dictionary_t dict) in prop_dictionary_copyout_ioctl() argument [all …]
|
/dragonfly/lib/libdm/ |
H A D | dm_task.c | 50 prop_dictionary_t dict; member 153 if ((dmt->dict = prop_dictionary_create()) == NULL) in dm_task_create() 202 if (dmt->dict != NULL) in dm_task_create() 203 prop_object_release(dmt->dict); in dm_task_create() 218 if (dmt->dict) { in dm_task_destroy() 219 prop_object_release(dmt->dict); in dm_task_destroy() 220 dmt->dict = NULL; in dm_task_destroy() 259 if (!prop_dictionary_set_cstring_nocopy(dmt->dict, in dm_task_run() 270 if (!prop_dictionary_set_cstring_nocopy(dmt->dict, in dm_task_run() 300 prop_object_release(dmt->dict); in dm_task_run() [all …]
|
/dragonfly/sbin/devattr/ |
H A D | devattr.c | 199 prop_dictionary_t dict; in main() local 241 dict = udev_device_get_dictionary(dev); in main() 242 if (dict == NULL) in main() 244 iter = prop_dictionary_iterator(dict); in main() 253 key_val = prop_dictionary_get(dict, in main() 261 key_val = prop_dictionary_get_keysym(dict, in main() 275 dict = udev_device_get_dictionary(dev); in main() 276 if (dict == NULL) in main() 278 iter = prop_dictionary_iterator(dict); in main() 287 key_val = prop_dictionary_get(dict, in main() [all …]
|
/dragonfly/contrib/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 125 if ((dictLoadMethod == ZSTD_dlm_byRef) || (!dict) || (!dictSize)) { in ZSTD_initDDict_internal() 127 ddict->dictContent = dict; in ZSTD_initDDict_internal() 128 if (!dict) dictSize = 0; in ZSTD_initDDict_internal() 134 ZSTD_memcpy(internalBuffer, dict, dictSize); in ZSTD_initDDict_internal() 156 dict, dictSize, in ZSTD_createDDict_advanced() 170 ZSTD_DDict* ZSTD_createDDict(const void* dict, size_t dictSize) in ZSTD_createDDict() argument 189 const void* dict, size_t dictSize, in ZSTD_initStaticDDict() argument 197 assert(dict != NULL); in ZSTD_initStaticDDict() 201 ZSTD_memcpy(ddict+1, dict, dictSize); /* local copy */ in ZSTD_initStaticDDict() 202 dict = ddict+1; in ZSTD_initStaticDDict() [all …]
|
/dragonfly/contrib/xz/src/liblzma/lzma/ |
H A D | lzma_decoder.c | 314 lzma_dict dict = *dictptr; in lzma_decode() local 316 const size_t dict_start = dict.pos; in lzma_decode() 342 uint32_t pos_state = dict.pos & pos_mask; in lzma_decode() 350 if (no_eopm && coder->uncompressed_size < dict.limit - dict.pos) in lzma_decode() 351 dict.limit = dict.pos + (size_t)(coder->uncompressed_size); in lzma_decode() 360 pos_state = dict.pos & pos_mask; in lzma_decode() 364 if (unlikely(no_eopm && dict.pos == dict.limit)) in lzma_decode() 374 dict.pos, dict_get(&dict, 0)); in lzma_decode() 718 &dict, rep0)))) { in lzma_decode() 803 dictptr->pos = dict.pos; in lzma_decode() [all …]
|
/dragonfly/contrib/zstd/lib/ |
H A D | zstd.h | 819 const void* dict,size_t dictSize, 831 const void* dict,size_t dictSize); 897 ZSTDLIB_API unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 1464 const void* dict, size_t dictSize, 1471 const void* dict, size_t dictSize, 1495 ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced(const void* dict, size_t dictSize, 1520 const void* dict, size_t dictSize, 1526 ZSTDLIB_API ZSTD_DDict* ZSTD_createDDict_advanced(const void* dict, size_t dictSize, 1579 const void* dict,size_t dictSize, 2045 const void* dict, size_t dictSize, [all …]
|
/dragonfly/usr.sbin/ppp/ |
H A D | pred.c | 65 u_char dict[GUESS_TABLE_SIZE]; member 79 if (state->dict[state->hash] == *source) { in compress() 82 state->dict[state->hash] = *source; in compress() 97 *dest++ = state->dict[state->hash] = *source; in SyncTable() 114 *dest = state->dict[state->hash]; /* Guess correct */ in decompress() 118 state->dict[state->hash] = *source; /* Guess wrong */ in decompress() 140 memset(state->dict, '\0', sizeof state->dict); in Pred1ResetInput() 149 memset(state->dict, '\0', sizeof state->dict); in Pred1ResetOutput()
|
/dragonfly/contrib/zstd/lib/dictBuilder/ |
H A D | cover.c | 773 dict, dictBufferCapacity, dict + tail, dictBufferCapacity - tail, in ZDICT_trainFromBuffer_cover() 848 best->dict = NULL; in COVER_best_init() 876 if (best->dict) { in COVER_best_destroy() 877 free(best->dict); in COVER_best_destroy() 918 if (best->dict) { in COVER_best_finish() 919 free(best->dict); in COVER_best_finish() 922 if (!best->dict) { in COVER_best_finish() 931 if (dict) { in COVER_best_finish() 932 memcpy(best->dict, dict, dictSize); in COVER_best_finish() 1081 if (!dict || !freqs) { in COVER_tryParameters() [all …]
|