i 42 crmd/lrm.c #define s_if_plural(i) (((i) == 1)? "" : "s") i 195 fencing/admin.c int i = 0; i 198 fencing/admin.c for (i = 0; i < tries; i++) { i 163 fencing/config.y int i; i 167 fencing/config.y for (i = 0; i < line_val.val_count; i++) { i 168 fencing/config.y crm_free(line_val.keys[i]); i 169 fencing/config.y crm_free(line_val.vals[i]); i 178 fencing/config.y int i; i 186 fencing/config.y for (i = 0; i < line_val.val_count; i++) { i 188 fencing/config.y line_val.keys[i], i 189 fencing/config.y line_val.vals[i]); i 193 fencing/config.y for (i = 0; i < line_val.val_count; i++) { i 195 fencing/config.y line_val.vals[i], /* fence device name */ i 200 fencing/config.y for (i = 0; i < line_val.val_count; i++) { i 201 fencing/config.y if (line_val.keys[i]) { i 202 fencing/config.y res |= standalone_cfg_add_node(line_val.keys[i], i 204 fencing/config.y line_val.vals[i]); i 207 fencing/config.y res |= standalone_cfg_add_node(line_val.vals[i], i 626 fencing/remote.c int i; i 632 fencing/remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 633 fencing/remote.c if (tp->levels[i] != NULL) { i 1294 fencing/remote.c int i; i 1305 fencing/remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 1306 fencing/remote.c if (!tp->levels[i]) { i 1309 fencing/remote.c for (device_list = tp->levels[i]; device_list; device_list = device_list->next) { i 1618 fencing/remote.c int i; i 1630 fencing/remote.c for (i = 0; i < ST_LEVEL_MAX; i++) { i 1631 fencing/remote.c for (device = tp->levels[i]; device; device = device->next) { i 223 fencing/standalone_config.c int i; i 229 fencing/standalone_config.c for (i = 0; i < topo->priority_levels_count; i++) { i 230 fencing/standalone_config.c free(topo->priority_levels[i].device_name); i 243 fencing/standalone_config.c int i; i 252 fencing/standalone_config.c for (i = 0; i < dev->key_vals_count; i++) { i 253 fencing/standalone_config.c free(dev->key_vals[i].key); i 254 fencing/standalone_config.c free(dev->key_vals[i].val); i 269 fencing/standalone_config.c int i; i 272 fencing/standalone_config.c for (i = 0; i < topo->priority_levels_count; i++) { i 273 fencing/standalone_config.c devices = stonith_key_value_add(devices, NULL, topo->priority_levels[i].device_name); i 276 fencing/standalone_config.c topo->priority_levels[i].level, devices); i 296 fencing/standalone_config.c int i; i 306 fencing/standalone_config.c for (i = 0; i < dev->key_vals_count; i++) { i 307 fencing/standalone_config.c params stonith_key_value_add(params, dev->key_vals[i].key, dev->key_vals[i].val); i 521 fencing/test.c int i = 0; i 524 fencing/test.c for (i = 0; i < tries; i++) { i 687 lib/ais/plugin.c unsigned int i; i 697 lib/ais/plugin.c for (i = 0; i < iface_count; i++) { i 698 lib/ais/plugin.c sprintf(one_iface, "r(%d) ip(%s), ", i, totemip_print(&interfaces[i])); i 204 lib/cib/cib_file.c int i; i 207 lib/cib/cib_file.c for (i = 0; i < DIMOF(livenames); ++i) { i 208 lib/cib/cib_file.c real_livename = crm_compat_realpath(livenames[i]); i 181 lib/cluster/corosync.c int i; i 217 lib/cluster/corosync.c for (i = 0; i < view_list_entries; i++) { i 218 lib/cluster/corosync.c uint32_t id = view_list[i]; i 220 lib/cluster/corosync.c crm_debug("Member[%d] %u ", i, id); i 369 lib/cluster/cpg.c int i; i 374 lib/cluster/cpg.c for (i = 0; i < left_list_entries; i++) { i 375 lib/cluster/cpg.c crm_node_t *peer = crm_find_peer(left_list[i].nodeid, NULL); i 378 lib/cluster/cpg.c left_list[i].nodeid, groupName->value, i 379 lib/cluster/cpg.c (peer? peer->uname : "<none>"), counter, i); i 385 lib/cluster/cpg.c for (i = 0; i < joined_list_entries; i++) { i 387 lib/cluster/cpg.c joined_list[i].nodeid, groupName->value, counter, i); i 390 lib/cluster/cpg.c for (i = 0; i < member_list_entries; i++) { i 391 lib/cluster/cpg.c crm_node_t *peer = crm_get_peer(member_list[i].nodeid, NULL); i 394 lib/cluster/cpg.c member_list[i].nodeid, groupName->value, i 395 lib/cluster/cpg.c (peer? peer->uname : "<none>"), counter, i); i 422 lib/cluster/cpg.c if (local_nodeid == member_list[i].nodeid) { i 35 lib/cluster/membership.c #define s_if_plural(i) (((i) == 1)? "" : "s") i 199 lib/common/schemas.c for (int i = 0; i < 2; ++i) { i 200 lib/common/schemas.c if (a_version.v[i] < b_version.v[i]) { i 202 lib/common/schemas.c } else if (a_version.v[i] > b_version.v[i]) { i 225 lib/common/schemas.c for (int i = 0; i < 2; ++i) { i 226 lib/common/schemas.c known_schemas[last].version.v[i] = version->v[i]; i 227 lib/common/schemas.c if (version->v[i]) { i 1106 lib/common/utils.c int i = 0; i 1128 lib/common/utils.c for (i = 0; crm_long_options[i].name != NULL; i++) { i 1129 lib/common/utils.c if (crm_long_options[i].flags & pcmk_option_hidden) { i 1131 lib/common/utils.c } else if (crm_long_options[i].flags & pcmk_option_paragraph) { i 1132 lib/common/utils.c fprintf(stream, "%s\n\n", crm_long_options[i].desc); i 1134 lib/common/utils.c } else if (crm_long_options[i].flags & pcmk_option_example) { i 1135 lib/common/utils.c fprintf(stream, "\t#%s\n\n", crm_long_options[i].desc); i 1137 lib/common/utils.c } else if (crm_long_options[i].val == '-' && crm_long_options[i].desc) { i 1138 lib/common/utils.c fprintf(stream, "%s\n", crm_long_options[i].desc); i 1142 lib/common/utils.c if (crm_long_options[i].val && crm_long_options[i].val <= UCHAR_MAX) { i 1143 lib/common/utils.c fprintf(stream, " -%c,", crm_long_options[i].val); i 1147 lib/common/utils.c fprintf(stream, " --%s%s\t%s\n", crm_long_options[i].name, i 1148 lib/common/utils.c crm_long_options[i].has_arg == optional_argument ? "[=value]" : i 1149 lib/common/utils.c crm_long_options[i].has_arg == required_argument ? "=value" : "", i 1150 lib/common/utils.c crm_long_options[i].desc ? crm_long_options[i].desc : ""); i 1156 lib/common/utils.c for (i = 0; crm_short_options[i] != 0; i++) { i 1159 lib/common/utils.c if (crm_short_options[i + 1] == ':') { i 1160 lib/common/utils.c if (crm_short_options[i + 2] == ':') i 1166 lib/common/utils.c fprintf(stream, " -%c %s\n", crm_short_options[i], i 1169 lib/common/utils.c i += has_arg; i 184 lib/common/xpath.c int i; i 186 lib/common/xpath.c for (i = 0; i < nresults; i++) { i 187 lib/common/xpath.c xmlNode *result = getXpathResult(xpathObj, i); i 473 lib/pengine/native.c comma_if(int i) i 475 lib/pengine/native.c return i? ", " : ""; i 953 lib/pengine/rules.c int i; i 965 lib/pengine/rules.c i = *(p + 1) - '0'; i 966 lib/pengine/rules.c if (match_data->nregs >= i && match_data->pmatch[i].rm_so != -1 && i 967 lib/pengine/rules.c match_data->pmatch[i].rm_eo > match_data->pmatch[i].rm_so) { i 968 lib/pengine/rules.c len += p - last_match_index + (match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so); i 987 lib/pengine/rules.c i = *(p + 1) - '0'; i 988 lib/pengine/rules.c if (match_data->nregs >= i && match_data->pmatch[i].rm_so != -1 && i 989 lib/pengine/rules.c match_data->pmatch[i].rm_eo > match_data->pmatch[i].rm_so) { i 991 lib/pengine/rules.c int match_len = match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so; i 992 lib/pengine/rules.c memcpy(p_dst, match_data->string + match_data->pmatch[i].rm_so, match_len); i 565 lib/services/services.c unsigned int i; i 591 lib/services/services.c for (i = 0; i < DIMOF(op->opaque->args); i++) { i 592 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 468 lrmd/main.c int i, maxlen; i 472 lrmd/main.c for(i = 0; i < argc; i++) { i 473 lrmd/main.c if(!i || (LastArgv + 1 == argv[i])) i 474 lrmd/main.c LastArgv = argv[i] + strlen(argv[i]); i 477 lrmd/main.c for(i = 0; envp[i] != NULL; i++) { i 478 lrmd/main.c if((LastArgv + 1) == envp[i]) { i 479 lrmd/main.c LastArgv = envp[i] + strlen(envp[i]); i 485 lrmd/main.c i = strlen(name); i 490 lrmd/main.c p = &argv[0][i]; i 499 lrmd/main.c size_t i; i 502 lrmd/main.c for (i = 0; i < DIMOF(sigmap); i++) { i 503 lrmd/main.c if (sigmap[i].sig == sig) { i 504 lrmd/main.c sigmap[i].handler(); i 743 mcp/pacemaker.c int i; i 748 mcp/pacemaker.c for (i = 0; i < max; i++) { i 749 mcp/pacemaker.c const char *name = pcmk_children[i].name; i 751 mcp/pacemaker.c if (pcmk_children[i].start_seq == 0) { i 754 mcp/pacemaker.c if (pcmk_children[i].flag == crm_proc_stonith_ng) { i 759 mcp/pacemaker.c pcmk_children[i].pid = pid; i 760 mcp/pacemaker.c pcmk_children[i].active_before_startup = TRUE; i 187 replace/uuid_parse.c int i; i 189 replace/uuid_parse.c for (i = 0, cp1 = dst, cp2 = src; i < 16; i++) i 198 replace/uuid_parse.c int i; i 200 replace/uuid_parse.c for (i = 0, cp = uu; i < 16; i++) i 211 replace/uuid_parse.c int i; i 217 replace/uuid_parse.c for (i = 0, cp = in; i <= 36; i++, cp++) { i 218 replace/uuid_parse.c if ((i == 8) || (i == 13) || (i == 18) || (i == 23)) { i 224 replace/uuid_parse.c if (i == 36) i 236 replace/uuid_parse.c for (i = 0; i < 6; i++) { i 239 replace/uuid_parse.c uuid.node[i] = strtoul(buf, NULL, 16); i 294 replace/uuid_parse.c int i; i 305 replace/uuid_parse.c for (i = (tv.tv_sec ^ tv.tv_usec) & 0x1F; i > 0; i--) i 317 replace/uuid_parse.c int i, n = nbytes, fd = get_random_fd(); i 323 replace/uuid_parse.c i = read(fd, cp, n); i 324 replace/uuid_parse.c if (i <= 0) { i 329 replace/uuid_parse.c n -= i; i 330 replace/uuid_parse.c cp += i; i 339 replace/uuid_parse.c for (cp = buf, i = 0; i < nbytes; i++) i 355 replace/uuid_parse.c int n, i; i 368 replace/uuid_parse.c # define ifreq_size(i) max(sizeof(struct ifreq),\ i 369 replace/uuid_parse.c sizeof((i).ifr_name)+(i).ifr_addr.sa_len) i 371 replace/uuid_parse.c # define ifreq_size(i) sizeof(struct ifreq) i 386 replace/uuid_parse.c for (i = 0; i < n; i += ifreq_size(*ifr)) { i 387 replace/uuid_parse.c ifrp = (struct ifreq *)((char *)ifc.ifc_buf + i); i 142 tools/crm_diff.c int i = 0; i 149 tools/crm_diff.c for (i = 0; i < DIMOF(tags); i++) { i 153 tools/crm_diff.c tmp = find_xml_node(patch, tags[i], FALSE); i 165 tools/crm_mon.c #define s_if_plural(i) (((i) == 1)? "" : "s") i 1705 tools/crm_mon.c int i; i 1711 tools/crm_mon.c for (i = 0; filt_str[i] != NULL; i++) { i 1712 tools/crm_mon.c if (g_str_has_prefix(name, filt_str[i])) {