i 255 daemons/execd/remoted_pidone.c int i, maxlen; i 259 daemons/execd/remoted_pidone.c for (i = 0; i < argc; i++) { i 260 daemons/execd/remoted_pidone.c if (!i || (LastArgv + 1 == argv[i])) i 261 daemons/execd/remoted_pidone.c LastArgv = argv[i] + strlen(argv[i]); i 264 daemons/execd/remoted_pidone.c for (i = 0; envp[i] != NULL; i++) { i 265 daemons/execd/remoted_pidone.c if ((LastArgv + 1) == envp[i]) { i 266 daemons/execd/remoted_pidone.c LastArgv = envp[i] + strlen(envp[i]); i 272 daemons/execd/remoted_pidone.c i = strlen(name); i 278 daemons/execd/remoted_pidone.c p = &argv[0][i]; i 288 daemons/execd/remoted_pidone.c size_t i; i 291 daemons/execd/remoted_pidone.c for (i = 0; i < PCMK__NELEM(sigmap); i++) { i 292 daemons/execd/remoted_pidone.c if (sigmap[i].sig == sig) { i 293 daemons/execd/remoted_pidone.c sigmap[i].handler(); i 179 daemons/fenced/fenced_history.c int i; i 185 daemons/fenced/fenced_history.c i = 0; i 188 daemons/fenced/fenced_history.c ops[i++] = op; i 195 daemons/fenced/fenced_history.c for (i = MAX_STONITH_HISTORY / 2; i < num_ops; i++) { i 199 daemons/fenced/fenced_history.c if ((ops[i]->state == st_failed) || (ops[i]->state == st_done)) { i 200 daemons/fenced/fenced_history.c g_hash_table_remove(stonith_remote_op_list, ops[i]->id); i 668 daemons/fenced/fenced_remote.c int i; i 674 daemons/fenced/fenced_remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 675 daemons/fenced/fenced_remote.c if (tp->levels[i] != NULL) { i 1376 daemons/fenced/fenced_remote.c int i; i 1387 daemons/fenced/fenced_remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 1388 daemons/fenced/fenced_remote.c if (!tp->levels[i]) { i 1391 daemons/fenced/fenced_remote.c for (device_list = tp->levels[i]; device_list; device_list = device_list->next) { i 1717 daemons/fenced/fenced_remote.c int i; i 1729 daemons/fenced/fenced_remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 1730 daemons/fenced/fenced_remote.c for (device = tp->levels[i]; device; device = device->next) { i 729 daemons/pacemakerd/pacemakerd.c for (int i = 0; dirs[i] != NULL; ++i) { i 730 daemons/pacemakerd/pacemakerd.c int rc = pcmk__build_path(dirs[i], 0750); i 734 daemons/pacemakerd/pacemakerd.c dirs[i], pcmk_rc_str(rc)); i 736 daemons/pacemakerd/pacemakerd.c mcp_chown(dirs[i], pcmk_uid, pcmk_gid); i 952 daemons/pacemakerd/pacemakerd.c size_t i, rounds; i 956 daemons/pacemakerd/pacemakerd.c for (i = 0; i < SIZEOF(pcmk_children); i++) { i 958 daemons/pacemakerd/pacemakerd.c if ((pcmk_children[i].endpoint == NULL) i 959 daemons/pacemakerd/pacemakerd.c || (pcmk_children[i].respawn_count < 0)) { i 963 daemons/pacemakerd/pacemakerd.c rc = child_liveness(&pcmk_children[i]); i 972 daemons/pacemakerd/pacemakerd.c pcmk_children[i].respawn_count = rounds; i 975 daemons/pacemakerd/pacemakerd.c if (pcmk_children[i].pid == PCMK__SPECIAL_PID) { i 980 daemons/pacemakerd/pacemakerd.c pcmk_children[i].endpoint); i 982 daemons/pacemakerd/pacemakerd.c } else if (pcmk_children[i].respawn_count == WAIT_TRIES) { i 991 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, WAIT_TRIES - 1); i 999 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, i 1006 daemons/pacemakerd/pacemakerd.c " attempt(s)", pcmk_children[i].endpoint, i 1007 daemons/pacemakerd/pacemakerd.c WAIT_TRIES - pcmk_children[i].respawn_count); i 1012 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, i 1014 daemons/pacemakerd/pacemakerd.c pcmk_children[i].pid)); i 1015 daemons/pacemakerd/pacemakerd.c pcmk_children[i].respawn_count = -1; /* 0~keep watching */ i 1016 daemons/pacemakerd/pacemakerd.c pcmk_children[i].active_before_startup = TRUE; i 1020 daemons/pacemakerd/pacemakerd.c if (pcmk_children[i].respawn_count == WAIT_TRIES) { i 1023 daemons/pacemakerd/pacemakerd.c pcmk_children[i].endpoint, i 1025 daemons/pacemakerd/pacemakerd.c pcmk_children[i].pid)); i 1032 daemons/pacemakerd/pacemakerd.c pcmk_children[i].endpoint, i 1034 daemons/pacemakerd/pacemakerd.c pcmk_children[i].pid), i 1035 daemons/pacemakerd/pacemakerd.c WAIT_TRIES - pcmk_children[i].respawn_count); i 1039 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, pcmk_rc_str(rc), rc); i 1048 daemons/pacemakerd/pacemakerd.c for (i = 0; i < SIZEOF(pcmk_children); i++) { i 1049 daemons/pacemakerd/pacemakerd.c pcmk_children[i].respawn_count = 0; /* restore pristine state */ i 1156 daemons/pacemakerd/pacemakerd.c for (int i = 0; i < 900; ++i) { i 15 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 16 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 17 devel/coccinelle/test/ref-passed-variables-inited.input.c baz(i); i 21 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 22 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 23 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 37 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 38 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 39 devel/coccinelle/test/ref-passed-variables-inited.input.c *w = i; i 43 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 44 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 45 devel/coccinelle/test/ref-passed-variables-inited.input.c **w = *i; i 49 devel/coccinelle/test/ref-passed-variables-inited.input.c int *i; i 50 devel/coccinelle/test/ref-passed-variables-inited.input.c zob(&i); i 51 devel/coccinelle/test/ref-passed-variables-inited.input.c ***w = *i; i 55 devel/coccinelle/test/ref-passed-variables-inited.input.c int *i; i 56 devel/coccinelle/test/ref-passed-variables-inited.input.c zob1(&i); i 57 devel/coccinelle/test/ref-passed-variables-inited.input.c ***w = *i; i 61 devel/coccinelle/test/ref-passed-variables-inited.input.c int **i; i 62 devel/coccinelle/test/ref-passed-variables-inited.input.c zob1(&i); i 63 devel/coccinelle/test/ref-passed-variables-inited.input.c ****w = **i; i 67 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 68 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 69 devel/coccinelle/test/ref-passed-variables-inited.input.c return i; i 73 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 74 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 78 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 79 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 80 devel/coccinelle/test/ref-passed-variables-inited.input.c i = 1; i 85 devel/coccinelle/test/ref-passed-variables-inited.input.c int i; i 86 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&i); i 87 devel/coccinelle/test/ref-passed-variables-inited.input.c *(&i) = 2; i 160 include/crm/common/strings_internal.h #define pcmk__plural_alt(i, s1, s2) (((i) == 1)? (s1) : (s2)) i 163 include/crm/common/strings_internal.h #define pcmk__plural_s(i) pcmk__plural_alt(i, "", "s") i 270 lib/cluster/corosync.c int i; i 306 lib/cluster/corosync.c for (i = 0; i < view_list_entries; i++) { i 307 lib/cluster/corosync.c uint32_t id = view_list[i]; i 309 lib/cluster/corosync.c crm_debug("Member[%d] %u ", i, id); i 635 lib/cluster/cpg.c int i; i 651 lib/cluster/cpg.c for (i = 0; i < left_list_entries; i++) { i 652 lib/cluster/cpg.c crm_node_t *peer = pcmk__search_cluster_node_cache(left_list[i].nodeid, i 672 lib/cluster/cpg.c key = &left_list[i]; i 681 lib/cluster/cpg.c left_list[i].nodeid, left_list[i].pid, i 682 lib/cluster/cpg.c cpgreason2str(left_list[i].reason)); i 687 lib/cluster/cpg.c } else if (left_list[i].nodeid == local_nodeid) { i 690 lib/cluster/cpg.c left_list[i].pid, cpgreason2str(left_list[i].reason)); i 695 lib/cluster/cpg.c left_list[i].nodeid, left_list[i].pid, i 696 lib/cluster/cpg.c cpgreason2str(left_list[i].reason), (*rival)->pid); i 702 lib/cluster/cpg.c for (i = 0; i < joined_list_entries; i++) { i 704 lib/cluster/cpg.c groupName->value, counter, joined_list[i].nodeid, i 705 lib/cluster/cpg.c joined_list[i].pid, cpgreason2str(joined_list[i].reason)); i 708 lib/cluster/cpg.c for (i = 0; i < member_list_entries; i++) { i 709 lib/cluster/cpg.c crm_node_t *peer = crm_get_peer(member_list[i].nodeid, NULL); i 711 lib/cluster/cpg.c if (member_list[i].nodeid == local_nodeid i 712 lib/cluster/cpg.c && member_list[i].pid != getpid()) { i 715 lib/cluster/cpg.c groupName->value, counter, member_list[i].pid); i 720 lib/cluster/cpg.c member_list[i].nodeid, member_list[i].pid); i 745 lib/cluster/cpg.c member_list[i].nodeid, groupName->value); i 750 lib/cluster/cpg.c if (local_nodeid == member_list[i].nodeid) { i 162 lib/common/cmdline.c for (int i = 0; argv[i] != NULL; i++) { i 168 lib/common/cmdline.c if (saw_dash_dash == false && strcmp(argv[i], "--") == 0) { i 173 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); i 180 lib/common/cmdline.c if (pcmk__str_eq(argv[i], "-", pcmk__str_casei)) { i 181 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); i 188 lib/common/cmdline.c if (g_str_has_prefix(argv[i], "-") && !g_str_has_prefix(argv[i], "--")) { i 190 lib/common/cmdline.c char *ch = argv[i]+1; i 228 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); i 262 lib/common/digest.c for (int i = 0; i < PCMK__NELEM(filter); i++) { i 263 lib/common/digest.c if (strcmp(name, filter[i]) == 0) { i 40 lib/common/ipc_pacemakerd.c int i; i 45 lib/common/ipc_pacemakerd.c for (i=pcmk_pacemakerd_state_init; i <= pcmk_pacemakerd_state_max; i 46 lib/common/ipc_pacemakerd.c i++) { i 47 lib/common/ipc_pacemakerd.c if (pcmk__str_eq(state, pacemakerd_state_str[i], pcmk__str_none)) { i 48 lib/common/ipc_pacemakerd.c return i; i 1052 lib/common/logging.c for (int i = 0; i < verbosity; i++) { i 1447 lib/common/mainloop.c for (int i = 0; (i < n) && g_main_context_pending(ctx); ++i) { i 194 lib/common/options.c int i = 0; i 216 lib/common/options.c for (i = 0; crm_long_options[i].name != NULL; i++) { i 217 lib/common/options.c if (crm_long_options[i].flags & pcmk__option_hidden) { i 219 lib/common/options.c } else if (crm_long_options[i].flags & pcmk__option_paragraph) { i 220 lib/common/options.c fprintf(stream, "%s\n\n", crm_long_options[i].desc); i 222 lib/common/options.c } else if (crm_long_options[i].flags & pcmk__option_example) { i 223 lib/common/options.c fprintf(stream, "\t#%s\n\n", crm_long_options[i].desc); i 225 lib/common/options.c } else if (crm_long_options[i].val == '-' && crm_long_options[i].desc) { i 226 lib/common/options.c fprintf(stream, "%s\n", crm_long_options[i].desc); i 230 lib/common/options.c if (crm_long_options[i].val && crm_long_options[i].val <= UCHAR_MAX) { i 231 lib/common/options.c fprintf(stream, " -%c,", crm_long_options[i].val); i 235 lib/common/options.c fprintf(stream, " --%s%s\t%s\n", crm_long_options[i].name, i 236 lib/common/options.c crm_long_options[i].has_arg == optional_argument ? "[=value]" : i 237 lib/common/options.c crm_long_options[i].has_arg == required_argument ? "=value" : "", i 238 lib/common/options.c crm_long_options[i].desc ? crm_long_options[i].desc : ""); i 244 lib/common/options.c for (i = 0; crm_short_options[i] != 0; i++) { i 247 lib/common/options.c if (crm_short_options[i + 1] == ':') { i 248 lib/common/options.c if (crm_short_options[i + 2] == ':') i 254 lib/common/options.c fprintf(stream, " -%c %s\n", crm_short_options[i], i 257 lib/common/options.c i += has_arg; i 153 lib/common/output_html.c for (int i = 0; i < g_slist_length(extra_headers); i++) { i 154 lib/common/output_html.c xmlAddChild(head_node, xmlCopyNode(g_slist_nth_data(extra_headers, i), 1)); i 364 lib/common/output_text.c for (int i = 0; i < level; i++) { i 163 lib/common/schemas.c for (int i = 0; i < 2; ++i) { i 164 lib/common/schemas.c if (a_version.v[i] < b_version.v[i]) { i 166 lib/common/schemas.c } else if (a_version.v[i] > b_version.v[i]) { i 197 lib/common/schemas.c for (int i = 0; i < 2; ++i) { i 198 lib/common/schemas.c known_schemas[last].version.v[i] = version->v[i]; i 199 lib/common/schemas.c if (version->v[i]) { i 15 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c for (int i = 0; i < g_strv_length((a)); i++) { \ i 16 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c g_assert_cmpstr((a)[i], ==, (b)[i]); \ i 178 lib/common/xpath.c int i; i 180 lib/common/xpath.c for (i = 0; i < nresults; i++) { i 181 lib/common/xpath.c xmlNode *result = getXpathResult(xpathObj, i); i 2405 lib/fencing/st_client.c size_t i = 0; i 2418 lib/fencing/st_client.c for (i = 0; i <= len; i++) { i 2420 lib/fencing/st_client.c if (isspace(line[i]) || (line[i] == ',') || (line[i] == ';') i 2421 lib/fencing/st_client.c || (line[i] == '\0')) { i 2427 lib/fencing/st_client.c if (i == entry_start) { i 2429 lib/fencing/st_client.c entry_start = i + 1; i 2433 lib/fencing/st_client.c entry = calloc(i - entry_start + 1, sizeof(char)); i 2444 lib/fencing/st_client.c line + entry_start, entry_start, i); i 2462 lib/fencing/st_client.c entry_start = i + 1; i 2497 lib/fencing/st_client.c for (size_t i = 0; i <= out_len; ++i) { i 2498 lib/fencing/st_client.c if ((target_spec[i] == '\n') || (target_spec[i] == '\0') i 2499 lib/fencing/st_client.c || ((target_spec[i] == '\\') && (target_spec[i + 1] == 'n'))) { i 2502 lib/fencing/st_client.c int len = i - line_start; i 2511 lib/fencing/st_client.c if (target_spec[i] == '\\') { i 2512 lib/fencing/st_client.c ++i; // backslash-n takes up two positions i 2514 lib/fencing/st_client.c line_start = i + 1; i 37 lib/fencing/st_rhcs.c int count = 0, i; i 49 lib/fencing/st_rhcs.c for (i = 0; i < file_num; i++) { i 52 lib/fencing/st_rhcs.c if (pcmk__starts_with(namelist[i]->d_name, RH_STONITH_PREFIX)) { i 55 lib/fencing/st_rhcs.c namelist[i]->d_name); i 59 lib/fencing/st_rhcs.c if (i == 0) { i 63 lib/fencing/st_rhcs.c free(namelist[i]); i 69 lib/fencing/st_rhcs.c if (fstatat(dirfd, namelist[i]->d_name, &prop, 0) == 0 i 73 lib/fencing/st_rhcs.c namelist[i]->d_name); i 77 lib/fencing/st_rhcs.c free(namelist[i]); i 109 lib/pengine/pe_output.c int i; i 115 lib/pengine/pe_output.c for (i = 0; filt_str[i] != NULL; i++) { i 116 lib/pengine/pe_output.c if (g_str_has_prefix(name, filt_str[i])) { i 661 lib/pengine/rules.c int i; i 673 lib/pengine/rules.c i = *(p + 1) - '0'; i 674 lib/pengine/rules.c if (match_data->nregs >= i && match_data->pmatch[i].rm_so != -1 && i 675 lib/pengine/rules.c match_data->pmatch[i].rm_eo > match_data->pmatch[i].rm_so) { i 676 lib/pengine/rules.c len += p - last_match_index + (match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so); i 695 lib/pengine/rules.c i = *(p + 1) - '0'; i 696 lib/pengine/rules.c if (match_data->nregs >= i && match_data->pmatch[i].rm_so != -1 && i 697 lib/pengine/rules.c match_data->pmatch[i].rm_eo > match_data->pmatch[i].rm_so) { i 699 lib/pengine/rules.c int match_len = match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so; i 700 lib/pengine/rules.c memcpy(p_dst, match_data->string + match_data->pmatch[i].rm_so, match_len); i 515 lib/services/services.c unsigned int i; i 541 lib/services/services.c for (i = 0; i < PCMK__NELEM(op->opaque->args); i++) { i 542 lib/services/services.c free(op->opaque->args[i]); i 399 libltdl/loaders/dyld.c int i = _dyld_image_count(); i 406 libltdl/loaders/dyld.c while (i > 0) i 408 libltdl/loaders/dyld.c --i; i 409 libltdl/loaders/dyld.c if (strneq (_dyld_get_image_name (i), modname)) i 411 libltdl/loaders/dyld.c mh = _dyld_get_image_header (i); i 450 libltdl/loaders/dyld.c int i = _dyld_image_count(); i 452 libltdl/loaders/dyld.c while (i > 0) i 456 libltdl/loaders/dyld.c --i; i 457 libltdl/loaders/dyld.c id = lt__header_get_instnam (_dyld_get_image_header (i)); i 460 libltdl/loaders/dyld.c mh = _dyld_get_image_header (i); i 823 libltdl/ltdl.c int i; i 944 libltdl/ltdl.c for (i = 0; i < depcount; ++i) i 946 libltdl/ltdl.c cur->deplibs[j] = lt_dlopenext(names[depcount-1-i]); i 958 libltdl/ltdl.c for (i = 0; i < depcount; ++i) i 960 libltdl/ltdl.c FREE (names[i]); i 977 libltdl/ltdl.c int i; i 983 libltdl/ltdl.c for (i = 0; i < cur->depcount; ++i) i 985 libltdl/ltdl.c if (!LT_DLIS_RESIDENT (cur->deplibs[i])) i 987 libltdl/ltdl.c errors += lt_dlclose (cur->deplibs[i]); i 1262 libltdl/ltdl.c int i; i 1263 libltdl/ltdl.c for (i = 0; i < ext - base_name; ++i) i 1265 libltdl/ltdl.c if (isalnum ((unsigned char)(base_name[i]))) i 1267 libltdl/ltdl.c name[i] = base_name[i]; i 1271 libltdl/ltdl.c name[i] = '_'; i 2320 libltdl/ltdl.c int i; i 2326 libltdl/ltdl.c for (i = 0; i < n_elements; ++i) i 2328 libltdl/ltdl.c if (cur->interface_data[i].key == key) i 2330 libltdl/ltdl.c stale = cur->interface_data[i].data; i 2337 libltdl/ltdl.c if (i == n_elements) i 2351 libltdl/ltdl.c cur->interface_data[i].key = key; i 2352 libltdl/ltdl.c cur->interface_data[1+ i].key = 0; i 2355 libltdl/ltdl.c cur->interface_data[i].data = data; i 2370 libltdl/ltdl.c int i; i 2371 libltdl/ltdl.c for (i = 0; cur->interface_data[i].key; ++i) i 2373 libltdl/ltdl.c if (cur->interface_data[i].key == key) i 2375 libltdl/ltdl.c result = cur->interface_data[i].data; i 147 maint/mocked/based-notifyfenced.c for (size_t i = 0; i < SIZE_MAX - 1; i++) { i 149 maint/mocked/based-notifyfenced.c for (size_t i = 0; i < 10000; i++) { i 166 maint/mocked/based-notifyfenced.c "</diff>\n", i, i+1); i 248 maint/mocked/based.c for (size_t i = 1; i < argc; i++) { i 249 maint/mocked/based.c if (argv[i][0] == '-' && argv[i][1] != '-' && argv[i][1] != '\0') { i 251 maint/mocked/based.c printf("\t-%c\t", argv[i][1]); i 253 maint/mocked/based.c switch(argv[i][1]) { i 270 maint/mocked/based.c s[(ctxt->modules_cnt - i) + 1] = '|'; i 271 maint/mocked/based.c s[(ctxt->modules_cnt - i) + 2] = ctxt->modules[c - 1]->shortopt; i 282 maint/mocked/based.c if (ctxt->modules[c - 1]->shortopt == argv[i][1]) { i 283 maint/mocked/based.c ret = ctxt->modules[c - 1]->hooks.argparse(ctxt, usage, argc - i, &argv[i]); i 287 maint/mocked/based.c i += (ret - 1); i 292 maint/mocked/based.c printf("uknown option \"%s\"\n", argv[i]); i 192 tools/crm_diff.c int i = 0; i 199 tools/crm_diff.c for (i = 0; i < PCMK__NELEM(tags); i++) { i 203 tools/crm_diff.c tmp = find_xml_node(patch, tags[i], FALSE); i 201 tools/crm_mon.c for (int i = 0; sections[i].name != NULL; i++) { i 202 tools/crm_mon.c if (pcmk__str_eq(sections[i].name, name, pcmk__str_casei)) { i 203 tools/crm_mon.c return sections[i].bit; i 1476 tools/crm_mon.c for (int i = 0; i < args->verbosity; i++) { i 392 tools/crm_mon_curses.c for (int i = 0; i < level; i++) { i 1597 tools/crm_resource.c int i = 1; i 1610 tools/crm_resource.c strv[i] = crm_strdup_printf("[%d of %d] %s\n", i, len, *s); i 1611 tools/crm_resource.c i++; i 1619 tools/crm_resource.c for(i = 0; i < len; i++) { i 1620 tools/crm_resource.c free(strv[i]); i 424 tools/crm_resource_ban.c int i; i 430 tools/crm_resource_ban.c for (i = 0; i < numXpathResults(xpathObj); i++) { i 431 tools/crm_resource_ban.c xmlNode *constraint_node = getXpathResult(xpathObj, i); i 713 tools/crm_simulate.c for (int i = 0; i < repeat; ++i) {