/freebsd/contrib/ntp/libntp/lib/isc/win32/ |
H A D | interfaceiter.c | 119 isc_interfaceiter_t *iter; in isc_interfaceiter_create() local 133 iter = isc_mem_get(mctx, sizeof(*iter)); in isc_interfaceiter_create() 134 if (iter == NULL) in isc_interfaceiter_create() 139 iter->mctx = mctx; in isc_interfaceiter_create() 140 iter->ipaa = NULL; in isc_interfaceiter_create() 141 iter->buf4 = NULL; in isc_interfaceiter_create() 142 iter->buf6 = NULL; in isc_interfaceiter_create() 143 iter->pos4 = NULL; in isc_interfaceiter_create() 144 iter->ipaaCur = NULL; in isc_interfaceiter_create() 145 iter->ipuaCur = NULL; in isc_interfaceiter_create() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | ifiter_ioctl.c | 132 getbuf4(isc_interfaceiter_t *iter) { in getbuf4() argument 135 iter->bufsize = IFCONF_BUFSIZE_INITIAL; in getbuf4() 138 iter->buf = isc_mem_get(iter->mctx, iter->bufsize); in getbuf4() 139 if (iter->buf == NULL) in getbuf4() 142 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len)); in getbuf4() 143 iter->ifc.ifc_len = iter->bufsize; in getbuf4() 144 iter->ifc.ifc_buf = iter->buf; in getbuf4() 150 if (isc_ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc) in getbuf4() 176 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq) in getbuf4() 177 < iter->bufsize) in getbuf4() [all …]
|
H A D | ifiter_getifaddrs.c | 55 isc_interfaceiter_t *iter; in isc_interfaceiter_create() local 64 iter = isc_mem_get(mctx, sizeof(*iter)); in isc_interfaceiter_create() 65 if (iter == NULL) in isc_interfaceiter_create() 68 iter->mctx = mctx; in isc_interfaceiter_create() 69 iter->buf = NULL; in isc_interfaceiter_create() 70 iter->bufsize = 0; in isc_interfaceiter_create() 71 iter->ifaddrs = NULL; in isc_interfaceiter_create() 78 iter->proc = fopen("/proc/net/if_inet6", "r"); in isc_interfaceiter_create() 79 if (iter->proc == NULL) { in isc_interfaceiter_create() 86 iter->proc = NULL; in isc_interfaceiter_create() [all …]
|
H A D | ifiter_sysctl.c | 69 isc_interfaceiter_t *iter; in isc_interfaceiter_create() local 79 iter = isc_mem_get(mctx, sizeof(*iter)); in isc_interfaceiter_create() 80 if (iter == NULL) in isc_interfaceiter_create() 83 iter->mctx = mctx; in isc_interfaceiter_create() 84 iter->buf = 0; in isc_interfaceiter_create() 102 iter->bufsize = bufsize; in isc_interfaceiter_create() 104 iter->buf = isc_mem_get(iter->mctx, iter->bufsize); in isc_interfaceiter_create() 105 if (iter->buf == NULL) { in isc_interfaceiter_create() 111 if (sysctl(mib, 6, iter->buf, &bufused, NULL, (size_t) 0) < 0) { in isc_interfaceiter_create() 123 iter->bufused = bufused; in isc_interfaceiter_create() [all …]
|
H A D | interfaceiter.c | 157 static void linux_if_inet6_first(isc_interfaceiter_t *iter); 170 linux_if_inet6_first(isc_interfaceiter_t *iter) { in linux_if_inet6_first() argument 171 if (iter->proc != NULL) { in linux_if_inet6_first() 172 rewind(iter->proc); in linux_if_inet6_first() 173 (void)linux_if_inet6_next(iter); in linux_if_inet6_first() 175 iter->valid = ISC_R_NOMORE; in linux_if_inet6_first() 179 linux_if_inet6_next(isc_interfaceiter_t *iter) { in linux_if_inet6_next() argument 180 if (iter->proc != NULL && in linux_if_inet6_next() 181 fgets(iter->entry, sizeof(iter->entry), iter->proc) != NULL) in linux_if_inet6_next() 182 iter->valid = ISC_R_SUCCESS; in linux_if_inet6_next() [all …]
|
/freebsd/contrib/kyua/store/ |
H A D | schema_inttest.cpp | 94 store::results_iterator iter = transaction.get_results(); in check_action_1() local 95 ATF_REQUIRE(!iter); in check_action_1() 161 store::results_iterator iter = transaction.get_results(); in check_action_2() local 162 ATF_REQUIRE(iter); in check_action_2() 163 ATF_REQUIRE_EQ(test_program_1, *iter.test_program()); in check_action_2() 164 ATF_REQUIRE_EQ("main", iter.test_case_name()); in check_action_2() 165 ATF_REQUIRE_EQ(result_1, iter.result()); in check_action_2() 166 ATF_REQUIRE(iter.stdout_contents().empty()); in check_action_2() 167 ATF_REQUIRE(iter.stderr_contents().empty()); in check_action_2() 168 ATF_REQUIRE_EQ(1357643611000000LL, iter.start_time().to_microseconds()); in check_action_2() [all …]
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | map_test.c | 84 atf_map_citer_t iter; in ATF_TC_BODY() local 89 iter = atf_map_find_c(&map, "K1"); in ATF_TC_BODY() 90 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map))); in ATF_TC_BODY() 91 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K1") == 0); in ATF_TC_BODY() 92 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V1") == 0); in ATF_TC_BODY() 94 iter = atf_map_find_c(&map, "K2"); in ATF_TC_BODY() 95 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map))); in ATF_TC_BODY() 96 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K2") == 0); in ATF_TC_BODY() 97 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V2") == 0); in ATF_TC_BODY() 127 atf_map_iter_t iter; in ATF_TC_BODY() local [all …]
|
H A D | map.c | 120 atf_map_iter_key(const atf_map_iter_t iter) in atf_map_iter_key() argument 122 const struct map_entry *me = iter.m_entry; in atf_map_iter_key() 128 atf_map_iter_data(const atf_map_iter_t iter) in atf_map_iter_data() argument 130 const struct map_entry *me = iter.m_entry; in atf_map_iter_data() 136 atf_map_iter_next(const atf_map_iter_t iter) in atf_map_iter_next() argument 140 newiter = iter; in atf_map_iter_next() 141 newiter.m_listiter = atf_list_iter_next(iter.m_listiter); in atf_map_iter_next() 204 atf_list_iter_t iter; in atf_map_fini() local 206 atf_list_for_each(iter, &m->m_list) { in atf_map_fini() 207 struct map_entry *me = atf_list_iter_data(iter); in atf_map_fini() [all …]
|
H A D | list.c | 50 atf_list_citer_t iter; in entry_to_citer() local 51 iter.m_list = l; in entry_to_citer() 52 iter.m_entry = le; in entry_to_citer() 53 return iter; in entry_to_citer() 60 atf_list_iter_t iter; in entry_to_iter() local 61 iter.m_list = l; in entry_to_iter() 62 iter.m_entry = le; in entry_to_iter() 63 return iter; in entry_to_iter() 158 atf_list_iter_data(const atf_list_iter_t iter) in atf_list_iter_data() argument 160 const struct list_entry *le = iter.m_entry; in atf_list_iter_data() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | icm.h | 87 struct mlx4_icm_iter *iter) in mlx4_icm_first() argument 89 iter->icm = icm; in mlx4_icm_first() 90 iter->chunk = list_empty(&icm->chunk_list) ? in mlx4_icm_first() 93 iter->page_idx = 0; in mlx4_icm_first() 96 static inline int mlx4_icm_last(struct mlx4_icm_iter *iter) in mlx4_icm_last() argument 98 return !iter->chunk; in mlx4_icm_last() 101 static inline void mlx4_icm_next(struct mlx4_icm_iter *iter) in mlx4_icm_next() argument 103 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next() 104 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mlx4_icm_next() 105 iter->chunk = NULL; in mlx4_icm_next() [all …]
|
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
H A D | evpkdf_pbkdf2.txt | 20 Ctrl.iter = iter:1 28 Ctrl.iter = iter:1 36 Ctrl.iter = iter:1 44 Ctrl.iter = iter:2 52 Ctrl.iter = iter:2 60 Ctrl.iter = iter:2 68 Ctrl.iter = iter:4096 76 Ctrl.iter = iter:4096 84 Ctrl.iter = iter:4096 91 Ctrl.iter = iter:4096 [all …]
|
H A D | evpkdf_pbkdf1.txt | 20 Ctrl.iter = iter:1 28 Ctrl.iter = iter:1 36 Ctrl.iter = iter:1 44 Ctrl.iter = iter:2 52 Ctrl.iter = iter:2 60 Ctrl.iter = iter:2 68 Ctrl.iter = iter:4096 76 Ctrl.iter = iter:4096 84 Ctrl.iter = iter:4096 92 Ctrl.iter = iter:65537 [all …]
|
H A D | evppbe_pbkdf2.txt | 19 iter = 1 26 iter = 1 33 iter = 1 40 iter = 2 47 iter = 2 54 iter = 2 61 iter = 4096 68 iter = 4096 75 iter = 4096 82 iter = 4096 [all …]
|
/freebsd/contrib/kyua/cli/ |
H A D | cmd_report.cpp | 173 iter = env.begin(); iter != env.end(); iter++) { in print_context() local 174 print_env_var(" ", (*iter).first, (*iter).second); in print_context() 206 for (model::properties_map::const_iterator iter = props.begin(); in print_test_case_and_result() local 207 iter != props.end(); ++iter) { in print_test_case_and_result() 208 if ((*iter).second.empty()) { in print_test_case_and_result() 209 _output << F(" %s is empty\n") % (*iter).first; in print_test_case_and_result() 211 _output << F(" %s = %s\n") % (*iter).first % (*iter).second; in print_test_case_and_result() 239 std::vector< result_data > >::const_iterator iter = in count_results() local 241 if (iter == _results.end()) in count_results() 244 return (*iter).second.size(); in count_results() [all …]
|
/freebsd/contrib/kyua/drivers/ |
H A D | report_junit.cpp | 115 for (model::properties_map::const_iterator iter = props.begin(); in junit_metadata() local 116 iter != props.end(); ++iter) { in junit_metadata() 117 if ((*iter).second.empty()) { in junit_metadata() 118 output << F("%s is empty\n") % (*iter).first; in junit_metadata() 120 output << F("%s = %s\n") % (*iter).first % (*iter).second; in junit_metadata() 168 for (model::properties_map::const_iterator iter = in got_context() local 169 context.env().begin(); iter != context.env().end(); ++iter) { in got_context() 171 % text::escape_xml((*iter).first) in got_context() 172 % text::escape_xml((*iter).second); in got_context() 182 drivers::report_junit_hooks::got_result(store::results_iterator& iter) in got_result() argument [all …]
|
/freebsd/libexec/flua/libjail/ |
H A D | lua_jail.c | 88 struct l_jail_iter *iter, **iterp; in l_jail_iter_next() local 93 iter = *iterp; in l_jail_iter_next() 94 luaL_argcheck(L, iter != NULL, 1, "closed jail iterator"); in l_jail_iter_next() 96 jp = iter->params; in l_jail_iter_next() 98 if (jailparam_import_raw(&jp[0], &iter->jid, sizeof(iter->jid))) { in l_jail_iter_next() 99 jailparam_free(jp, iter->params_count); in l_jail_iter_next() 101 free(iter); in l_jail_iter_next() 107 iter->jid = jailparam_get(jp, iter->params_count, 0); in l_jail_iter_next() 108 if (iter->jid == -1) { in l_jail_iter_next() 115 jailparam_free(jp, iter->params_count); in l_jail_iter_next() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_fs.c | 61 struct ipoib_mcast_iter *iter; in ipoib_mcg_seq_start() local 64 iter = ipoib_mcast_iter_init(file->private); in ipoib_mcg_seq_start() 65 if (!iter) in ipoib_mcg_seq_start() 69 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcg_seq_start() 70 kfree(iter); in ipoib_mcg_seq_start() 75 return iter; in ipoib_mcg_seq_start() 81 struct ipoib_mcast_iter *iter = iter_ptr; in ipoib_mcg_seq_next() local 85 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcg_seq_next() 86 kfree(iter); in ipoib_mcg_seq_next() 90 return iter; in ipoib_mcg_seq_next() [all …]
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_memfree.h | 98 struct mthca_icm_iter *iter) in mthca_icm_first() argument 100 iter->icm = icm; in mthca_icm_first() 101 iter->chunk = list_empty(&icm->chunk_list) ? in mthca_icm_first() 104 iter->page_idx = 0; in mthca_icm_first() 107 static inline int mthca_icm_last(struct mthca_icm_iter *iter) in mthca_icm_last() argument 109 return !iter->chunk; in mthca_icm_last() 112 static inline void mthca_icm_next(struct mthca_icm_iter *iter) in mthca_icm_next() argument 114 if (++iter->page_idx >= iter->chunk->nsg) { in mthca_icm_next() 115 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mthca_icm_next() 116 iter->chunk = NULL; in mthca_icm_next() [all …]
|
/freebsd/contrib/lib9p/ |
H A D | hashtable.c | 172 ht_iter_advance(struct ht_iter *iter, struct ht_item *cur) in ht_iter_advance() argument 178 h = iter->htit_parent; in ht_iter_advance() 186 slot = iter->htit_slot; in ht_iter_advance() 192 iter->htit_slot = slot; in ht_iter_advance() 203 ht_remove_at_iter(struct ht_iter *iter) in ht_remove_at_iter() argument 209 assert(iter != NULL); in ht_remove_at_iter() 211 if ((item = iter->htit_curr) == NULL) { in ht_remove_at_iter() 217 h = iter->htit_parent; in ht_remove_at_iter() 219 slot = iter->htit_slot; in ht_remove_at_iter() 220 iter->htit_next = ht_iter_advance(iter, item); in ht_remove_at_iter() [all …]
|
/freebsd/sys/gnu/gcov/ |
H A D | gcc_4_7.c | 512 struct gcov_iterator *iter; in gcov_iter_new() local 514 iter = malloc(sizeof(struct gcov_iterator), M_GCOV, M_NOWAIT|M_ZERO); in gcov_iter_new() 515 if (iter == NULL) in gcov_iter_new() 518 iter->info = info; in gcov_iter_new() 520 iter->size = convert_to_gcda(NULL, info); in gcov_iter_new() 521 iter->buffer = malloc(iter->size, M_GCOV, M_NOWAIT); in gcov_iter_new() 522 if (!iter->buffer) in gcov_iter_new() 525 convert_to_gcda(iter->buffer, info); in gcov_iter_new() 527 return iter; in gcov_iter_new() 530 free(iter, M_GCOV); in gcov_iter_new() [all …]
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | ks_keychain.c | 375 struct iter { struct 386 struct iter *iter; in keychain_iter_start() argument 388 iter = calloc(1, sizeof(*iter)); in keychain_iter_start() 389 if (iter == NULL) { in keychain_iter_start() 400 0, NULL, &iter->certs); in keychain_iter_start() 402 free(iter); in keychain_iter_start() 408 hx509_certs_free(&iter->certs); in keychain_iter_start() 409 free(iter); in keychain_iter_start() 427 ret = hx509_certs_add(context, iter->certs, cert); in keychain_iter_start() 433 if (iter->certs) { in keychain_iter_start() [all …]
|
/freebsd/contrib/kyua/engine/ |
H A D | requirements.cpp | 65 for (model::strings_set::const_iterator iter = required_configs.begin(); in check_required_configs() local 66 iter != required_configs.end(); iter++) { in check_required_configs() 69 if ((*iter) == "unprivileged-user" || (*iter) == "unprivileged_user") in check_required_configs() 72 property = F("test_suites.%s.%s") % test_suite_name % (*iter); in check_required_configs() 76 (*iter); in check_required_configs() 190 for (model::paths_set::const_iterator iter = required_files.begin(); in check_required_files() local 191 iter != required_files.end(); iter++) { in check_required_files() 192 INV((*iter).is_absolute()); in check_required_files() 193 if (!fs::exists(*iter)) in check_required_files() 194 return F("Required file '%s' not found") % *iter; in check_required_files() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers_wps.c | 225 DBusMessageIter iter, dict_iter, entry_iter; in wpas_dbus_handler_wps_start() local 232 dbus_message_iter_init(message, &iter); in wpas_dbus_handler_wps_start() 234 dbus_message_iter_recurse(&iter, &dict_iter); in wpas_dbus_handler_wps_start() 313 dbus_message_iter_init_append(reply, &iter); in wpas_dbus_handler_wps_start() 314 if (!wpa_dbus_dict_open_write(&iter, &dict_iter) || in wpas_dbus_handler_wps_start() 317 !wpa_dbus_dict_close_write(&iter, &dict_iter)) { in wpas_dbus_handler_wps_start() 358 DBusMessageIter *iter, DBusError *error, void *user_data) in wpas_dbus_getter_process_credentials() argument 363 return wpas_dbus_simple_property_getter(iter, DBUS_TYPE_BOOLEAN, in wpas_dbus_getter_process_credentials() 380 DBusMessageIter *iter, DBusError *error, void *user_data) in wpas_dbus_setter_process_credentials() argument 387 if (!wpas_dbus_simple_property_setter(iter, error, DBUS_TYPE_BOOLEAN, in wpas_dbus_setter_process_credentials() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_uapi.c | 359 struct radix_tree_iter iter; in uapi_finalize_ioctl_method() local 366 radix_tree_for_each_slot (slot, &uapi->radix, &iter, in uapi_finalize_ioctl_method() 370 u32 attr_key = iter.index & UVERBS_API_ATTR_KEY_MASK; in uapi_finalize_ioctl_method() 374 if (uapi_key_attr_to_ioctl_method(iter.index) != in uapi_finalize_ioctl_method() 423 struct radix_tree_iter iter; in uapi_finalize() local 428 radix_tree_for_each_slot (slot, &uapi->radix, &iter, 0) { in uapi_finalize() 432 if (uapi_key_is_ioctl_method(iter.index)) { in uapi_finalize() 434 iter.index); in uapi_finalize() 439 if (uapi_key_is_write_method(iter.index)) in uapi_finalize() 441 iter.index & UVERBS_API_ATTR_KEY_MASK); in uapi_finalize() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | Broadcaster.cpp | 396 collection::iterator iter = m_event_map.begin(), end_iter = m_event_map.end(); in RegisterListenerForEventsNoLock() local 404 while (iter != end_iter && in RegisterListenerForEventsNoLock() 405 (iter = find_if(iter, end_iter, class_matches)) != end_iter) { in RegisterListenerForEventsNoLock() 406 available_bits &= ~((*iter).first.GetEventBits()); in RegisterListenerForEventsNoLock() 407 iter++; in RegisterListenerForEventsNoLock() 439 for (auto iter = m_event_map.begin(), end = m_event_map.end();;) { in UnregisterListenerForEventsNoLock() local 440 iter = find_if(iter, end, listener_matches_and_shared_bits); in UnregisterListenerForEventsNoLock() 441 if (iter == end) in UnregisterListenerForEventsNoLock() 443 uint32_t iter_event_bits = (*iter).first.GetEventBits(); in UnregisterListenerForEventsNoLock() 451 iter = m_event_map.erase(iter); in UnregisterListenerForEventsNoLock() [all …]
|