file_num 1166 lib/fencing/st_client.c int file_num = scandir(RH_STONITH_DIR, &namelist, 0, alphasort); file_num 1168 lib/fencing/st_client.c if (file_num > 0) { file_num 1172 lib/fencing/st_client.c while (file_num--) { file_num 1173 lib/fencing/st_client.c if ('.' == namelist[file_num]->d_name[0]) { file_num 1174 lib/fencing/st_client.c free(namelist[file_num]); file_num 1177 lib/fencing/st_client.c } else if (!crm_starts_with(namelist[file_num]->d_name, file_num 1179 lib/fencing/st_client.c free(namelist[file_num]); file_num 1183 lib/fencing/st_client.c snprintf(buffer, FILENAME_MAX, "%s/%s", RH_STONITH_DIR, namelist[file_num]->d_name); file_num 1185 lib/fencing/st_client.c *devices = stonith_key_value_add(*devices, NULL, namelist[file_num]->d_name); file_num 1189 lib/fencing/st_client.c free(namelist[file_num]); file_num 557 tools/crm_simulate.c int file_num = scandir(dir, &namelist, 0, alphasort); file_num 559 tools/crm_simulate.c if (file_num > 0) { file_num 563 tools/crm_simulate.c while (file_num--) { file_num 564 tools/crm_simulate.c if ('.' == namelist[file_num]->d_name[0]) { file_num 565 tools/crm_simulate.c free(namelist[file_num]); file_num 568 tools/crm_simulate.c } else if (!crm_ends_with_ext(namelist[file_num]->d_name, ".xml")) { file_num 569 tools/crm_simulate.c free(namelist[file_num]); file_num 574 tools/crm_simulate.c snprintf(buffer, sizeof(buffer), "%s/%s", dir, namelist[file_num]->d_name); file_num 578 tools/crm_simulate.c free(namelist[file_num]);