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 < DIMOF(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 665 daemons/fenced/fenced_remote.c int i; i 671 daemons/fenced/fenced_remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 672 daemons/fenced/fenced_remote.c if (tp->levels[i] != NULL) { i 1351 daemons/fenced/fenced_remote.c int i; i 1362 daemons/fenced/fenced_remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 1363 daemons/fenced/fenced_remote.c if (!tp->levels[i]) { i 1366 daemons/fenced/fenced_remote.c for (device_list = tp->levels[i]; device_list; device_list = device_list->next) { i 1692 daemons/fenced/fenced_remote.c int i; i 1704 daemons/fenced/fenced_remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 1705 daemons/fenced/fenced_remote.c for (device = tp->levels[i]; device; device = device->next) { i 922 daemons/pacemakerd/pacemakerd.c size_t i, rounds; i 926 daemons/pacemakerd/pacemakerd.c for (i = 0; i < SIZEOF(pcmk_children); i++) { i 928 daemons/pacemakerd/pacemakerd.c if ((pcmk_children[i].endpoint == NULL) i 929 daemons/pacemakerd/pacemakerd.c || (pcmk_children[i].respawn_count < 0)) { i 933 daemons/pacemakerd/pacemakerd.c rc = child_liveness(&pcmk_children[i]); i 942 daemons/pacemakerd/pacemakerd.c pcmk_children[i].respawn_count = rounds; i 945 daemons/pacemakerd/pacemakerd.c if (pcmk_children[i].pid == PCMK__SPECIAL_PID) { i 950 daemons/pacemakerd/pacemakerd.c pcmk_children[i].endpoint); i 952 daemons/pacemakerd/pacemakerd.c } else if (pcmk_children[i].respawn_count == WAIT_TRIES) { i 961 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, WAIT_TRIES - 1); i 969 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, i 976 daemons/pacemakerd/pacemakerd.c " attempt(s)", pcmk_children[i].endpoint, i 977 daemons/pacemakerd/pacemakerd.c WAIT_TRIES - pcmk_children[i].respawn_count); i 982 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, i 984 daemons/pacemakerd/pacemakerd.c pcmk_children[i].pid)); i 985 daemons/pacemakerd/pacemakerd.c pcmk_children[i].respawn_count = -1; /* 0~keep watching */ i 986 daemons/pacemakerd/pacemakerd.c pcmk_children[i].active_before_startup = TRUE; i 990 daemons/pacemakerd/pacemakerd.c if (pcmk_children[i].respawn_count == WAIT_TRIES) { i 993 daemons/pacemakerd/pacemakerd.c pcmk_children[i].endpoint, i 995 daemons/pacemakerd/pacemakerd.c pcmk_children[i].pid)); i 1002 daemons/pacemakerd/pacemakerd.c pcmk_children[i].endpoint, i 1004 daemons/pacemakerd/pacemakerd.c pcmk_children[i].pid), i 1005 daemons/pacemakerd/pacemakerd.c WAIT_TRIES - pcmk_children[i].respawn_count); i 1009 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, pcmk_rc_str(rc), rc); i 1018 daemons/pacemakerd/pacemakerd.c for (i = 0; i < SIZEOF(pcmk_children); i++) { i 1019 daemons/pacemakerd/pacemakerd.c pcmk_children[i].respawn_count = 0; /* restore pristine state */ i 1126 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 83 include/crm/common/strings_internal.h #define pcmk__plural_alt(i, s1, s2) (((i) == 1)? (s1) : (s2)) i 86 include/crm/common/strings_internal.h #define pcmk__plural_s(i) pcmk__plural_alt(i, "", "s") i 204 lib/cluster/corosync.c int i; i 240 lib/cluster/corosync.c for (i = 0; i < view_list_entries; i++) { i 241 lib/cluster/corosync.c uint32_t id = view_list[i]; i 243 lib/cluster/corosync.c crm_debug("Member[%d] %u ", i, id); i 411 lib/cluster/cpg.c int i; i 427 lib/cluster/cpg.c for (i = 0; i < left_list_entries; i++) { i 428 lib/cluster/cpg.c crm_node_t *peer = crm_find_peer(left_list[i].nodeid, NULL); i 447 lib/cluster/cpg.c key = &left_list[i]; i 456 lib/cluster/cpg.c left_list[i].nodeid, left_list[i].pid, i 457 lib/cluster/cpg.c cpgreason2str(left_list[i].reason)); i 462 lib/cluster/cpg.c } else if (left_list[i].nodeid == local_nodeid) { i 465 lib/cluster/cpg.c left_list[i].pid, cpgreason2str(left_list[i].reason)); i 470 lib/cluster/cpg.c left_list[i].nodeid, left_list[i].pid, i 471 lib/cluster/cpg.c cpgreason2str(left_list[i].reason), (*rival)->pid); i 477 lib/cluster/cpg.c for (i = 0; i < joined_list_entries; i++) { i 479 lib/cluster/cpg.c groupName->value, counter, joined_list[i].nodeid, i 480 lib/cluster/cpg.c joined_list[i].pid, cpgreason2str(joined_list[i].reason)); i 483 lib/cluster/cpg.c for (i = 0; i < member_list_entries; i++) { i 484 lib/cluster/cpg.c crm_node_t *peer = crm_get_peer(member_list[i].nodeid, NULL); i 486 lib/cluster/cpg.c if (member_list[i].nodeid == local_nodeid i 487 lib/cluster/cpg.c && member_list[i].pid != getpid()) { i 490 lib/cluster/cpg.c groupName->value, counter, member_list[i].pid); i 495 lib/cluster/cpg.c member_list[i].nodeid, member_list[i].pid); i 520 lib/cluster/cpg.c member_list[i].nodeid, groupName->value); i 525 lib/cluster/cpg.c if (local_nodeid == member_list[i].nodeid) { i 170 lib/common/cmdline.c for (int i = 0; argv[i] != NULL; i++) { i 176 lib/common/cmdline.c if (saw_dash_dash == false && strcmp(argv[i], "--") == 0) { i 181 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); i 188 lib/common/cmdline.c if (pcmk__str_eq(argv[i], "-", pcmk__str_casei)) { i 189 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); i 196 lib/common/cmdline.c if (g_str_has_prefix(argv[i], "-") && !g_str_has_prefix(argv[i], "--")) { i 198 lib/common/cmdline.c char *ch = argv[i]+1; i 236 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); i 245 lib/common/cmdline.c for (int i = 0; i < arr->len; i++) { i 246 lib/common/cmdline.c retval[i] = (gchar *) g_ptr_array_index(arr, i); i 262 lib/common/digest.c for (int i = 0; i < DIMOF(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 1396 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 142 lib/common/output_html.c for (int i = 0; i < g_slist_length(extra_headers); i++) { i 143 lib/common/output_html.c xmlAddChild(head_node, xmlCopyNode(g_slist_nth_data(extra_headers, i), 1)); i 295 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 177 lib/common/xpath.c int i; i 179 lib/common/xpath.c for (i = 0; i < nresults; i++) { i 180 lib/common/xpath.c xmlNode *result = getXpathResult(xpathObj, i); i 2416 lib/fencing/st_client.c size_t i = 0; i 2429 lib/fencing/st_client.c for (i = 0; i <= len; i++) { i 2431 lib/fencing/st_client.c if (isspace(line[i]) || (line[i] == ',') || (line[i] == ';') i 2432 lib/fencing/st_client.c || (line[i] == '\0')) { i 2438 lib/fencing/st_client.c if (i == entry_start) { i 2440 lib/fencing/st_client.c entry_start = i + 1; i 2444 lib/fencing/st_client.c entry = calloc(i - entry_start + 1, sizeof(char)); i 2455 lib/fencing/st_client.c line + entry_start, entry_start, i); i 2473 lib/fencing/st_client.c entry_start = i + 1; i 2508 lib/fencing/st_client.c for (size_t i = 0; i <= out_len; ++i) { i 2509 lib/fencing/st_client.c if ((target_spec[i] == '\n') || (target_spec[i] == '\0') i 2510 lib/fencing/st_client.c || ((target_spec[i] == '\\') && (target_spec[i + 1] == 'n'))) { i 2513 lib/fencing/st_client.c int len = i - line_start; i 2522 lib/fencing/st_client.c if (target_spec[i] == '\\') { i 2523 lib/fencing/st_client.c ++i; // backslash-n takes up two positions i 2525 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 746 lib/pengine/rules.c int i; i 758 lib/pengine/rules.c i = *(p + 1) - '0'; i 759 lib/pengine/rules.c if (match_data->nregs >= i && match_data->pmatch[i].rm_so != -1 && i 760 lib/pengine/rules.c match_data->pmatch[i].rm_eo > match_data->pmatch[i].rm_so) { i 761 lib/pengine/rules.c len += p - last_match_index + (match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so); i 780 lib/pengine/rules.c i = *(p + 1) - '0'; i 781 lib/pengine/rules.c if (match_data->nregs >= i && match_data->pmatch[i].rm_so != -1 && i 782 lib/pengine/rules.c match_data->pmatch[i].rm_eo > match_data->pmatch[i].rm_so) { i 784 lib/pengine/rules.c int match_len = match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so; i 785 lib/pengine/rules.c memcpy(p_dst, match_data->string + match_data->pmatch[i].rm_so, match_len); i 474 lib/services/services.c unsigned int i; i 500 lib/services/services.c for (i = 0; i < DIMOF(op->opaque->args); i++) { i 501 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 830 libltdl/ltdl.c int i; i 951 libltdl/ltdl.c for (i = 0; i < depcount; ++i) i 953 libltdl/ltdl.c cur->deplibs[j] = lt_dlopenext(names[depcount-1-i]); i 965 libltdl/ltdl.c for (i = 0; i < depcount; ++i) i 967 libltdl/ltdl.c FREE (names[i]); i 984 libltdl/ltdl.c int i; i 990 libltdl/ltdl.c for (i = 0; i < cur->depcount; ++i) i 992 libltdl/ltdl.c if (!LT_DLIS_RESIDENT (cur->deplibs[i])) i 994 libltdl/ltdl.c errors += lt_dlclose (cur->deplibs[i]); i 1269 libltdl/ltdl.c int i; i 1270 libltdl/ltdl.c for (i = 0; i < ext - base_name; ++i) i 1272 libltdl/ltdl.c if (isalnum ((unsigned char)(base_name[i]))) i 1274 libltdl/ltdl.c name[i] = base_name[i]; i 1278 libltdl/ltdl.c name[i] = '_'; i 2327 libltdl/ltdl.c int i; i 2333 libltdl/ltdl.c for (i = 0; i < n_elements; ++i) i 2335 libltdl/ltdl.c if (cur->interface_data[i].key == key) i 2337 libltdl/ltdl.c stale = cur->interface_data[i].data; i 2344 libltdl/ltdl.c if (i == n_elements) i 2358 libltdl/ltdl.c cur->interface_data[i].key = key; i 2359 libltdl/ltdl.c cur->interface_data[1+ i].key = 0; i 2362 libltdl/ltdl.c cur->interface_data[i].data = data; i 2377 libltdl/ltdl.c int i; i 2378 libltdl/ltdl.c for (i = 0; cur->interface_data[i].key; ++i) i 2380 libltdl/ltdl.c if (cur->interface_data[i].key == key) i 2382 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 191 tools/crm_diff.c int i = 0; i 198 tools/crm_diff.c for (i = 0; i < DIMOF(tags); i++) { i 202 tools/crm_diff.c tmp = find_xml_node(patch, tags[i], FALSE); i 325 tools/crm_diff.c for (int i = 0; i < args->verbosity; i++) { i 91 tools/crm_error.c for (int i = 0; i < args->verbosity; i++) { i 193 tools/crm_mon.c for (int i = 0; sections[i].name != NULL; i++) { i 194 tools/crm_mon.c if (pcmk__str_eq(sections[i].name, name, pcmk__str_casei)) { i 195 tools/crm_mon.c return sections[i].bit; i 1200 tools/crm_mon.c for (int i = 0; i < args->verbosity; i++) { i 295 tools/crm_mon_curses.c for (int i = 0; i < level; i++) { i 54 tools/crm_mon_runtime.c int i; i 60 tools/crm_mon_runtime.c for (i = 0; filt_str[i] != NULL; i++) { i 61 tools/crm_mon_runtime.c if (g_str_has_prefix(name, filt_str[i])) { i 552 tools/crm_node.c for (int i = 0; i < args->verbosity; i++) { i 1521 tools/crm_resource.c for (int i = 0; i < args->verbosity; i++) { i 1569 tools/crm_resource.c int i = 1; i 1582 tools/crm_resource.c strv[i] = crm_strdup_printf("[%d of %d] %s\n", i, len, *s); i 1583 tools/crm_resource.c i++; i 1590 tools/crm_resource.c for(i = 0; i < len; i++) { i 1591 tools/crm_resource.c free(strv[i]); i 404 tools/crm_resource_ban.c int i; i 410 tools/crm_resource_ban.c for (i = 0; i < numXpathResults(xpathObj); i++) { i 411 tools/crm_resource_ban.c xmlNode *constraint_node = getXpathResult(xpathObj, i); i 231 tools/crm_rule.c for (int i = 0; i < args->verbosity; i++) { i 808 tools/crm_simulate.c for (int i = 0; i < repeat; ++i) { i 921 tools/crm_simulate.c for (int i = 0; i < args->verbosity; i++) { i 419 tools/crmadmin.c for (int i = 0; i < args->verbosity; i++) { i 369 tools/stonith_admin.c for (int i = 0; i < args->verbosity; i++) {