argc 334 daemons/attrd/pacemaker-attrd.c main(int argc, char **argv) argc 342 daemons/attrd/pacemaker-attrd.c crm_log_preinit(NULL, argc, argv); argc 349 daemons/attrd/pacemaker-attrd.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 355 daemons/attrd/pacemaker-attrd.c crm_bump_log_level(argc, argv); argc 366 daemons/attrd/pacemaker-attrd.c if (optind > argc) { argc 374 daemons/attrd/pacemaker-attrd.c crm_log_init(T_ATTRD, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 56 daemons/based/cibmon.c main(int argc, char **argv) argc 83 daemons/based/cibmon.c flag = getopt_long(argc, argv, OPTARGS, long_options, &option_index); argc 85 daemons/based/cibmon.c flag = getopt(argc, argv, OPTARGS); argc 92 daemons/based/cibmon.c crm_bump_log_level(argc, argv); argc 113 daemons/based/cibmon.c if (optind < argc) { argc 115 daemons/based/cibmon.c while (optind < argc) argc 120 daemons/based/cibmon.c if (optind > argc) { argc 88 daemons/based/pacemaker-based.c main(int argc, char **argv) argc 97 daemons/based/pacemaker-based.c crm_log_preinit(NULL, argc, argv); argc 108 daemons/based/pacemaker-based.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 114 daemons/based/pacemaker-based.c crm_bump_log_level(argc, argv); argc 161 daemons/based/pacemaker-based.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argc 166 daemons/based/pacemaker-based.c if (optind > argc) { argc 174 daemons/based/pacemaker-based.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 51 daemons/controld/pacemaker-controld.c main(int argc, char **argv) argc 59 daemons/controld/pacemaker-controld.c crm_log_preinit(NULL, argc, argv); argc 65 daemons/controld/pacemaker-controld.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 71 daemons/controld/pacemaker-controld.c crm_bump_log_level(argc, argv); argc 82 daemons/controld/pacemaker-controld.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argc 85 daemons/controld/pacemaker-controld.c } else if (argc - optind == 1 && pcmk__str_eq("version", argv[optind], pcmk__str_casei)) { argc 90 daemons/controld/pacemaker-controld.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 92 daemons/controld/pacemaker-controld.c if (optind > argc) { argc 522 daemons/execd/cts-exec-helper.c main(int argc, char **argv) argc 538 daemons/execd/cts-exec-helper.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 548 daemons/execd/cts-exec-helper.c crm_bump_log_level(argc, argv); argc 633 daemons/execd/cts-exec-helper.c if (optind > argc) { argc 643 daemons/execd/cts-exec-helper.c argc, argv, FALSE); argc 424 daemons/execd/pacemaker-execd.c main(int argc, char **argv, char **envp) argc 433 daemons/execd/pacemaker-execd.c remoted_spawn_pidone(argc, argv, envp); argc 436 daemons/execd/pacemaker-execd.c crm_log_preinit(EXECD_NAME, argc, argv); argc 440 daemons/execd/pacemaker-execd.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 465 daemons/execd/pacemaker-execd.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 468 daemons/execd/pacemaker-execd.c crm_bump_log_level(argc, argv); argc 96 daemons/execd/pacemaker-execd.h void remoted_spawn_pidone(int argc, char **argv, char **envp); argc 195 daemons/execd/remoted_pidone.c remoted_spawn_pidone(int argc, char **argv, char **envp) argc 259 daemons/execd/remoted_pidone.c for (i = 0; i < argc; i++) { argc 597 daemons/fenced/cts-fence-helper.c main(int argc, char **argv) argc 611 daemons/fenced/cts-fence-helper.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 639 daemons/fenced/cts-fence-helper.c crm_log_init(NULL, LOG_INFO, TRUE, (verbose? TRUE : FALSE), argc, argv, argc 642 daemons/fenced/cts-fence-helper.c if (optind > argc) { argc 1271 daemons/fenced/pacemaker-fenced.c main(int argc, char **argv) argc 1281 daemons/fenced/pacemaker-fenced.c crm_log_preinit(NULL, argc, argv); argc 1287 daemons/fenced/pacemaker-fenced.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 1294 daemons/fenced/pacemaker-fenced.c crm_bump_log_level(argc, argv); argc 1316 daemons/fenced/pacemaker-fenced.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argc 1441 daemons/fenced/pacemaker-fenced.c if (optind != argc) { argc 1449 daemons/fenced/pacemaker-fenced.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 1142 daemons/pacemakerd/pacemakerd.c main(int argc, char **argv) argc 1155 daemons/pacemakerd/pacemakerd.c crm_log_preinit(NULL, argc, argv); argc 1163 daemons/pacemakerd/pacemakerd.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 1169 daemons/pacemakerd/pacemakerd.c crm_bump_log_level(argc, argv); argc 1198 daemons/pacemakerd/pacemakerd.c if (optind < argc) { argc 1200 daemons/pacemakerd/pacemakerd.c while (optind < argc) argc 1213 daemons/pacemakerd/pacemakerd.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 282 daemons/schedulerd/pacemaker-schedulerd.c main(int argc, char **argv) argc 288 daemons/schedulerd/pacemaker-schedulerd.c crm_log_preinit(NULL, argc, argv); argc 296 daemons/schedulerd/pacemaker-schedulerd.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 302 daemons/schedulerd/pacemaker-schedulerd.c crm_bump_log_level(argc, argv); argc 313 daemons/schedulerd/pacemaker-schedulerd.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argc 318 daemons/schedulerd/pacemaker-schedulerd.c if (optind > argc) { argc 326 daemons/schedulerd/pacemaker-schedulerd.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argc 103 include/crm/common/logging.h void crm_log_preinit(const char *entity, int argc, char **argv); argc 105 include/crm/common/logging.h gboolean to_stderr, int argc, char **argv, gboolean quiet); argc 107 include/crm/common/logging.h void crm_log_args(int argc, char **argv); argc 117 include/crm/common/logging.h void crm_bump_log_level(int argc, char **argv); argc 63 include/crm/common/options_internal.h int pcmk__next_cli_option(int argc, char **argv, int *index, argc 662 lib/common/logging.c crm_identity(const char *entity, int argc, char **argv) argc 671 lib/common/logging.c } else if (argc > 0 && argv != NULL) { argc 691 lib/common/logging.c crm_log_preinit(const char *entity, int argc, char **argv) argc 718 lib/common/logging.c crm_identity(entity, argc, argv); argc 748 lib/common/logging.c int argc, char **argv, gboolean quiet) argc 755 lib/common/logging.c crm_log_preinit(entity, argc, argv); argc 884 lib/common/logging.c crm_log_args(argc, argv); argc 927 lib/common/logging.c crm_bump_log_level(int argc, char **argv) argc 953 lib/common/logging.c crm_log_args(int argc, char **argv) argc 958 lib/common/logging.c if ((argc == 0) || (argv == NULL) || logged) { argc 147 lib/common/options.c pcmk__next_cli_option(int argc, char **argv, int *index, const char **longname) argc 158 lib/common/options.c int flag = getopt_long(argc, argv, crm_short_options, long_opts, index); argc 185 lib/common/options.c return getopt(argc, argv, crm_short_options); argc 37 lib/common/tests/flags/pcmk__clear_flags_as_test.c main(int argc, char **argv) argc 39 lib/common/tests/flags/pcmk__clear_flags_as_test.c g_test_init(&argc, &argv, NULL); argc 23 lib/common/tests/flags/pcmk__set_flags_as_test.c main(int argc, char **argv) argc 25 lib/common/tests/flags/pcmk__set_flags_as_test.c g_test_init(&argc, &argv, NULL); argc 32 lib/common/tests/flags/pcmk_all_flags_set_test.c main(int argc, char **argv) argc 34 lib/common/tests/flags/pcmk_all_flags_set_test.c g_test_init(&argc, &argv, NULL); argc 26 lib/common/tests/flags/pcmk_any_flags_set_test.c main(int argc, char **argv) argc 28 lib/common/tests/flags/pcmk_any_flags_set_test.c g_test_init(&argc, &argv, NULL); argc 201 lib/common/tests/operations/parse_op_key_test.c int main(int argc, char **argv) argc 203 lib/common/tests/operations/parse_op_key_test.c g_test_init(&argc, &argv, NULL); argc 84 lib/common/tests/strings/pcmk__add_word_test.c main(int argc, char **argv) argc 86 lib/common/tests/strings/pcmk__add_word_test.c g_test_init(&argc, &argv, NULL); argc 20 lib/common/tests/strings/pcmk__btoa_test.c main(int argc, char **argv) argc 22 lib/common/tests/strings/pcmk__btoa_test.c g_test_init(&argc, &argv, NULL); argc 35 lib/common/tests/strings/pcmk__char_in_any_str_test.c int main(int argc, char **argv) argc 37 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_test_init(&argc, &argv, NULL); argc 86 lib/common/tests/strings/pcmk__parse_ll_range_test.c int main(int argc, char **argv) argc 88 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_test_init(&argc, &argv, NULL); argc 145 lib/common/tests/strings/pcmk__scan_double_test.c int main(int argc, char **argv) argc 147 lib/common/tests/strings/pcmk__scan_double_test.c g_test_init(&argc, &argv, NULL); argc 37 lib/common/tests/strings/pcmk__str_any_of_test.c int main(int argc, char **argv) argc 39 lib/common/tests/strings/pcmk__str_any_of_test.c g_test_init(&argc, &argv, NULL); argc 68 lib/common/tests/strings/pcmk__strcmp_test.c int main(int argc, char **argv) { argc 69 lib/common/tests/strings/pcmk__strcmp_test.c g_test_init(&argc, &argv, NULL); argc 45 lib/common/tests/utils/pcmk_str_is_infinity_test.c int main(int argc, char **argv) argc 47 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_test_init(&argc, &argv, NULL); argc 42 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c int main(int argc, char **argv) argc 44 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_test_init(&argc, &argv, NULL); argc 102 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c int main(int argc, char **argv) { argc 103 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_test_init(&argc, &argv, NULL); argc 237 maint/mocked/based.c bool usage, int argc, const char *argv[]) argc 243 maint/mocked/based.c if (argc <= 1) { argc 248 maint/mocked/based.c for (size_t i = 1; i < argc; i++) { argc 283 maint/mocked/based.c ret = ctxt->modules[c - 1]->hooks.argparse(ctxt, usage, argc - i, &argv[i]); argc 301 maint/mocked/based.c int main(int argc, char *argv[]) argc 305 maint/mocked/based.c if (mock_based_options(ctxt, false, argc, (const char **) argv) > 0) { argc 313 maint/mocked/based.c crm_log_preinit(NULL, argc, argv); argc 314 maint/mocked/based.c crm_log_init(NULL, LOG_DEBUG, false, true, argc, argv, false); argc 39 scratch.c main(int argc, char **argv) argc 45 scratch.c crm_log_init(NULL, LOG_TRACE, FALSE, TRUE, argc, argv, FALSE); argc 47 scratch.c flag = getopt(argc, argv, OPTARGS); argc 166 tools/attrd_updater.c main(int argc, char **argv) argc 188 tools/attrd_updater.c if (argc < 2) { argc 193 tools/attrd_updater.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 199 tools/attrd_updater.c crm_bump_log_level(argc, argv); argc 232 tools/attrd_updater.c crm_log_args(argc, argv); /* Too much? */ argc 242 tools/attrd_updater.c crm_log_args(argc, argv); /* Too much? */ argc 250 tools/attrd_updater.c if (optind > argc) { argc 395 tools/cibadmin.c main(int argc, char **argv) argc 415 tools/cibadmin.c if (argc < 2) { argc 420 tools/cibadmin.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 485 tools/cibadmin.c crm_log_args(argc, argv); argc 504 tools/cibadmin.c crm_log_args(argc, argv); argc 509 tools/cibadmin.c crm_log_args(argc, argv); argc 513 tools/cibadmin.c crm_log_args(argc, argv); argc 542 tools/cibadmin.c crm_log_args(argc, argv); argc 546 tools/cibadmin.c if (optind < argc) { argc 561 tools/cibadmin.c crm_bump_log_level(argc, argv); argc 565 tools/cibadmin.c if (optind < argc) { argc 567 tools/cibadmin.c while (optind < argc) argc 573 tools/cibadmin.c if (optind > argc || cib_action == NULL) { argc 246 tools/crm_attribute.c main(int argc, char **argv) argc 267 tools/crm_attribute.c if (argc < 2) { argc 272 tools/crm_attribute.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 278 tools/crm_attribute.c crm_bump_log_level(argc, argv); argc 292 tools/crm_attribute.c crm_log_args(argc, argv); argc 340 tools/crm_attribute.c if (optind < argc) { argc 342 tools/crm_attribute.c while (optind < argc) argc 347 tools/crm_attribute.c if (optind > argc) { argc 301 tools/crm_diff.c main(int argc, char **argv) argc 326 tools/crm_diff.c crm_bump_log_level(argc, argv); argc 334 tools/crm_diff.c if (optind > argc) { argc 69 tools/crm_error.c main(int argc, char **argv) argc 92 tools/crm_error.c crm_bump_log_level(argc, argv); argc 1161 tools/crm_mon.c main(int argc, char **argv) argc 1201 tools/crm_mon.c crm_bump_log_level(argc, argv); argc 531 tools/crm_node.c main(int argc, char **argv) argc 553 tools/crm_node.c crm_bump_log_level(argc, argv); argc 561 tools/crm_node.c if (optind > argc || options.command == 0) { argc 1500 tools/crm_resource.c main(int argc, char **argv) argc 1522 tools/crm_resource.c crm_bump_log_level(argc, argv); argc 1528 tools/crm_resource.c crm_log_args(argc, argv); argc 1603 tools/crm_resource.c if (optind > argc) { argc 202 tools/crm_rule.c main(int argc, char **argv) argc 232 tools/crm_rule.c crm_bump_log_level(argc, argv); argc 240 tools/crm_rule.c if (optind > argc) { argc 245 tools/crm_shadow.c main(int argc, char **argv) argc 269 tools/crm_shadow.c if (argc < 2) { argc 274 tools/crm_shadow.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 320 tools/crm_shadow.c crm_bump_log_level(argc, argv); argc 341 tools/crm_shadow.c if (optind < argc) { argc 343 tools/crm_shadow.c while (optind < argc) argc 349 tools/crm_shadow.c if (optind > argc) { argc 897 tools/crm_simulate.c main(int argc, char **argv) argc 922 tools/crm_simulate.c crm_bump_log_level(argc, argv); argc 931 tools/crm_simulate.c if (optind > argc) { argc 708 tools/crm_ticket.c main(int argc, char **argv) argc 726 tools/crm_ticket.c crm_log_init(NULL, LOG_CRIT, FALSE, FALSE, argc, argv, FALSE); argc 732 tools/crm_ticket.c if (argc < 2) { argc 737 tools/crm_ticket.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 743 tools/crm_ticket.c crm_bump_log_level(argc, argv); argc 830 tools/crm_ticket.c if (optind < argc && argv[optind] != NULL) { argc 832 tools/crm_ticket.c while (optind < argc && argv[optind] != NULL) { argc 838 tools/crm_ticket.c if (optind > argc) { argc 106 tools/crm_verify.c main(int argc, char **argv) argc 136 tools/crm_verify.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argc 157 tools/crm_verify.c crm_bump_log_level(argc, argv); argc 173 tools/crm_verify.c if (optind < argc) { argc 175 tools/crm_verify.c while (optind < argc) { argc 181 tools/crm_verify.c if (optind > argc) { argc 394 tools/crmadmin.c main(int argc, char **argv) argc 421 tools/crmadmin.c crm_bump_log_level(argc, argv); argc 445 tools/crmadmin.c if (optind > argc) { argc 528 tools/ipmiservicelogd.c main(int argc, char *argv[]) argc 546 tools/ipmiservicelogd.c if (argc > 1) { argc 558 tools/ipmiservicelogd.c rv = ipmi_parse_args2(&curr_arg, argc, argv, &args); argc 110 tools/iso8601.c main(int argc, char **argv) argc 129 tools/iso8601.c if (argc < 2) { argc 134 tools/iso8601.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 140 tools/iso8601.c crm_bump_log_level(argc, argv); argc 96 tools/notifyServicelogEvent.c main(int argc, char *argv[]) argc 110 tools/notifyServicelogEvent.c if (argc < 2) { argc 115 tools/notifyServicelogEvent.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argc 130 tools/notifyServicelogEvent.c if (argc - optind != 1) { argc 334 tools/stonith_admin.c main(int argc, char **argv) argc 370 tools/stonith_admin.c crm_bump_log_level(argc, argv); argc 439 tools/stonith_admin.c crm_log_args(argc, argv); argc 446 tools/stonith_admin.c crm_log_args(argc, argv); argc 453 tools/stonith_admin.c crm_log_args(argc, argv); argc 459 tools/stonith_admin.c crm_log_args(argc, argv); argc 482 tools/stonith_admin.c if (optind > argc || action == 0) {