argv 334 daemons/attrd/pacemaker-attrd.c main(int argc, char **argv) argv 342 daemons/attrd/pacemaker-attrd.c crm_log_preinit(NULL, argc, argv); argv 349 daemons/attrd/pacemaker-attrd.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 355 daemons/attrd/pacemaker-attrd.c crm_bump_log_level(argc, argv); argv 374 daemons/attrd/pacemaker-attrd.c crm_log_init(T_ATTRD, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 56 daemons/based/cibmon.c main(int argc, char **argv) argv 83 daemons/based/cibmon.c flag = getopt_long(argc, argv, OPTARGS, long_options, &option_index); argv 85 daemons/based/cibmon.c flag = getopt(argc, argv, OPTARGS); argv 92 daemons/based/cibmon.c crm_bump_log_level(argc, argv); argv 116 daemons/based/cibmon.c printf("%s ", argv[optind++]); argv 88 daemons/based/pacemaker-based.c main(int argc, char **argv) argv 97 daemons/based/pacemaker-based.c crm_log_preinit(NULL, argc, argv); argv 108 daemons/based/pacemaker-based.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 114 daemons/based/pacemaker-based.c crm_bump_log_level(argc, argv); argv 161 daemons/based/pacemaker-based.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argv 174 daemons/based/pacemaker-based.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 51 daemons/controld/pacemaker-controld.c main(int argc, char **argv) argv 59 daemons/controld/pacemaker-controld.c crm_log_preinit(NULL, argc, argv); argv 65 daemons/controld/pacemaker-controld.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 71 daemons/controld/pacemaker-controld.c crm_bump_log_level(argc, argv); argv 82 daemons/controld/pacemaker-controld.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argv 85 daemons/controld/pacemaker-controld.c } else if (argc - optind == 1 && pcmk__str_eq("version", argv[optind], pcmk__str_casei)) { argv 90 daemons/controld/pacemaker-controld.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 522 daemons/execd/cts-exec-helper.c main(int argc, char **argv) argv 538 daemons/execd/cts-exec-helper.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 548 daemons/execd/cts-exec-helper.c crm_bump_log_level(argc, argv); argv 643 daemons/execd/cts-exec-helper.c argc, argv, FALSE); argv 424 daemons/execd/pacemaker-execd.c main(int argc, char **argv, char **envp) argv 433 daemons/execd/pacemaker-execd.c remoted_spawn_pidone(argc, argv, envp); argv 436 daemons/execd/pacemaker-execd.c crm_log_preinit(EXECD_NAME, argc, argv); argv 440 daemons/execd/pacemaker-execd.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 465 daemons/execd/pacemaker-execd.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 468 daemons/execd/pacemaker-execd.c crm_bump_log_level(argc, argv); argv 96 daemons/execd/pacemaker-execd.h void remoted_spawn_pidone(int argc, char **argv, char **envp); argv 195 daemons/execd/remoted_pidone.c remoted_spawn_pidone(int argc, char **argv, char **envp) argv 260 daemons/execd/remoted_pidone.c if (!i || (LastArgv + 1 == argv[i])) argv 261 daemons/execd/remoted_pidone.c LastArgv = argv[i] + strlen(argv[i]); argv 270 daemons/execd/remoted_pidone.c maxlen = (LastArgv - argv[0]) - 2; argv 275 daemons/execd/remoted_pidone.c snprintf(argv[0], maxlen, "%s", name); argv 278 daemons/execd/remoted_pidone.c p = &argv[0][i]; argv 282 daemons/execd/remoted_pidone.c argv[1] = NULL; argv 597 daemons/fenced/cts-fence-helper.c main(int argc, char **argv) argv 611 daemons/fenced/cts-fence-helper.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 639 daemons/fenced/cts-fence-helper.c crm_log_init(NULL, LOG_INFO, TRUE, (verbose? TRUE : FALSE), argc, argv, argv 1271 daemons/fenced/pacemaker-fenced.c main(int argc, char **argv) argv 1281 daemons/fenced/pacemaker-fenced.c crm_log_preinit(NULL, argc, argv); argv 1287 daemons/fenced/pacemaker-fenced.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 1294 daemons/fenced/pacemaker-fenced.c crm_bump_log_level(argc, argv); argv 1316 daemons/fenced/pacemaker-fenced.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argv 1449 daemons/fenced/pacemaker-fenced.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 1142 daemons/pacemakerd/pacemakerd.c main(int argc, char **argv) argv 1155 daemons/pacemakerd/pacemakerd.c crm_log_preinit(NULL, argc, argv); argv 1163 daemons/pacemakerd/pacemakerd.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 1169 daemons/pacemakerd/pacemakerd.c crm_bump_log_level(argc, argv); argv 1201 daemons/pacemakerd/pacemakerd.c printf("%s ", argv[optind++]); argv 1213 daemons/pacemakerd/pacemakerd.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 282 daemons/schedulerd/pacemaker-schedulerd.c main(int argc, char **argv) argv 288 daemons/schedulerd/pacemaker-schedulerd.c crm_log_preinit(NULL, argc, argv); argv 296 daemons/schedulerd/pacemaker-schedulerd.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 302 daemons/schedulerd/pacemaker-schedulerd.c crm_bump_log_level(argc, argv); argv 313 daemons/schedulerd/pacemaker-schedulerd.c if (argc - optind == 1 && pcmk__str_eq("metadata", argv[optind], pcmk__str_casei)) { argv 326 daemons/schedulerd/pacemaker-schedulerd.c crm_log_init(NULL, LOG_INFO, TRUE, FALSE, argc, argv, FALSE); argv 145 include/crm/common/cmdline_internal.h pcmk__cmdline_preproc(char **argv, const char *special); argv 103 include/crm/common/logging.h void crm_log_preinit(const char *entity, int argc, char **argv); argv 105 include/crm/common/logging.h gboolean to_stderr, int argc, char **argv, gboolean quiet); argv 107 include/crm/common/logging.h void crm_log_args(int argc, char **argv); argv 117 include/crm/common/logging.h void crm_bump_log_level(int argc, char **argv); argv 63 include/crm/common/options_internal.h int pcmk__next_cli_option(int argc, char **argv, int *index, argv 50 include/crm/common/output_internal.h typedef pcmk__output_t * (*pcmk__output_factory_t)(char **argv); argv 149 include/crm/common/output_internal.h pcmk__output_t *pcmk__mk_html_output(char **argv); argv 150 include/crm/common/output_internal.h pcmk__output_t *pcmk__mk_log_output(char **argv); argv 151 include/crm/common/output_internal.h pcmk__output_t *pcmk__mk_none_output(char **argv); argv 152 include/crm/common/output_internal.h pcmk__output_t *pcmk__mk_text_output(char **argv); argv 153 include/crm/common/output_internal.h pcmk__output_t *pcmk__mk_xml_output(char **argv); argv 509 include/crm/common/output_internal.h const char *filename, char **argv); argv 152 lib/common/cmdline.c pcmk__cmdline_preproc(char **argv, const char *special) { argv 157 lib/common/cmdline.c if (argv == NULL) { argv 161 lib/common/cmdline.c if (g_get_prgname() == NULL && argv && *argv) { argv 162 lib/common/cmdline.c gchar *basename = g_path_get_basename(*argv); argv 170 lib/common/cmdline.c for (int i = 0; argv[i] != NULL; i++) { argv 176 lib/common/cmdline.c if (saw_dash_dash == false && strcmp(argv[i], "--") == 0) { argv 181 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); argv 188 lib/common/cmdline.c if (pcmk__str_eq(argv[i], "-", pcmk__str_casei)) { argv 189 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); argv 196 lib/common/cmdline.c if (g_str_has_prefix(argv[i], "-") && !g_str_has_prefix(argv[i], "--")) { argv 198 lib/common/cmdline.c char *ch = argv[i]+1; argv 236 lib/common/cmdline.c g_ptr_array_add(arr, g_strdup(argv[i])); argv 662 lib/common/logging.c crm_identity(const char *entity, int argc, char **argv) argv 671 lib/common/logging.c } else if (argc > 0 && argv != NULL) { argv 672 lib/common/logging.c char *mutable = strdup(argv[0]); argv 691 lib/common/logging.c crm_log_preinit(const char *entity, int argc, char **argv) argv 718 lib/common/logging.c crm_identity(entity, argc, argv); argv 748 lib/common/logging.c int argc, char **argv, gboolean quiet) argv 755 lib/common/logging.c crm_log_preinit(entity, argc, argv); argv 884 lib/common/logging.c crm_log_args(argc, argv); argv 927 lib/common/logging.c crm_bump_log_level(int argc, char **argv) argv 953 lib/common/logging.c crm_log_args(int argc, char **argv) argv 958 lib/common/logging.c if ((argc == 0) || (argv == NULL) || logged) { argv 962 lib/common/logging.c arg_string = g_strjoinv(" ", argv); argv 147 lib/common/options.c pcmk__next_cli_option(int argc, char **argv, int *index, const char **longname) argv 158 lib/common/options.c int flag = getopt_long(argc, argv, crm_short_options, long_opts, index); argv 185 lib/common/options.c return getopt(argc, argv, crm_short_options); argv 35 lib/common/output.c char **argv) { argv 55 lib/common/output.c *out = create(argv); argv 372 lib/common/output_html.c pcmk__mk_html_output(char **argv) { argv 380 lib/common/output_html.c retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv); argv 230 lib/common/output_log.c pcmk__mk_log_output(char **argv) { argv 238 lib/common/output_log.c retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv); argv 99 lib/common/output_none.c pcmk__mk_none_output(char **argv) { argv 107 lib/common/output_none.c retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv); argv 248 lib/common/output_text.c pcmk__mk_text_output(char **argv) { argv 256 lib/common/output_text.c retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv); argv 380 lib/common/output_xml.c pcmk__mk_xml_output(char **argv) { argv 388 lib/common/output_xml.c retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv); argv 37 lib/common/tests/flags/pcmk__clear_flags_as_test.c main(int argc, char **argv) argv 39 lib/common/tests/flags/pcmk__clear_flags_as_test.c g_test_init(&argc, &argv, NULL); argv 23 lib/common/tests/flags/pcmk__set_flags_as_test.c main(int argc, char **argv) argv 25 lib/common/tests/flags/pcmk__set_flags_as_test.c g_test_init(&argc, &argv, NULL); argv 32 lib/common/tests/flags/pcmk_all_flags_set_test.c main(int argc, char **argv) argv 34 lib/common/tests/flags/pcmk_all_flags_set_test.c g_test_init(&argc, &argv, NULL); argv 26 lib/common/tests/flags/pcmk_any_flags_set_test.c main(int argc, char **argv) argv 28 lib/common/tests/flags/pcmk_any_flags_set_test.c g_test_init(&argc, &argv, NULL); argv 201 lib/common/tests/operations/parse_op_key_test.c int main(int argc, char **argv) argv 203 lib/common/tests/operations/parse_op_key_test.c g_test_init(&argc, &argv, NULL); argv 84 lib/common/tests/strings/pcmk__add_word_test.c main(int argc, char **argv) argv 86 lib/common/tests/strings/pcmk__add_word_test.c g_test_init(&argc, &argv, NULL); argv 20 lib/common/tests/strings/pcmk__btoa_test.c main(int argc, char **argv) argv 22 lib/common/tests/strings/pcmk__btoa_test.c g_test_init(&argc, &argv, NULL); argv 35 lib/common/tests/strings/pcmk__char_in_any_str_test.c int main(int argc, char **argv) argv 37 lib/common/tests/strings/pcmk__char_in_any_str_test.c g_test_init(&argc, &argv, NULL); argv 86 lib/common/tests/strings/pcmk__parse_ll_range_test.c int main(int argc, char **argv) argv 88 lib/common/tests/strings/pcmk__parse_ll_range_test.c g_test_init(&argc, &argv, NULL); argv 145 lib/common/tests/strings/pcmk__scan_double_test.c int main(int argc, char **argv) argv 147 lib/common/tests/strings/pcmk__scan_double_test.c g_test_init(&argc, &argv, NULL); argv 37 lib/common/tests/strings/pcmk__str_any_of_test.c int main(int argc, char **argv) argv 39 lib/common/tests/strings/pcmk__str_any_of_test.c g_test_init(&argc, &argv, NULL); argv 68 lib/common/tests/strings/pcmk__strcmp_test.c int main(int argc, char **argv) { argv 69 lib/common/tests/strings/pcmk__strcmp_test.c g_test_init(&argc, &argv, NULL); argv 45 lib/common/tests/utils/pcmk_str_is_infinity_test.c int main(int argc, char **argv) argv 47 lib/common/tests/utils/pcmk_str_is_infinity_test.c g_test_init(&argc, &argv, NULL); argv 42 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c int main(int argc, char **argv) argv 44 lib/common/tests/utils/pcmk_str_is_minus_infinity_test.c g_test_init(&argc, &argv, NULL); argv 33 lib/pacemaker/pcmk_sched_messages.c const char* argv[] = { "", NULL }; argv 48 lib/pacemaker/pcmk_sched_messages.c rc = pcmk__output_new(&out, "log", NULL, (char**)argv); argv 102 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c int main(int argc, char **argv) { argv 103 lib/pengine/tests/rules/pe_cron_range_satisfied_test.c g_test_init(&argc, &argv, NULL); argv 237 maint/mocked/based.c bool usage, int argc, const char *argv[]) argv 244 maint/mocked/based.c const char *help_argv[] = {argv[0], "-h"}; argv 249 maint/mocked/based.c if (argv[i][0] == '-' && argv[i][1] != '-' && argv[i][1] != '\0') { argv 251 maint/mocked/based.c printf("\t-%c\t", argv[i][1]); argv 253 maint/mocked/based.c switch(argv[i][1]) { argv 274 maint/mocked/based.c printf("Usage: %s [-{%s}]\n", argv[0], s); argv 282 maint/mocked/based.c if (ctxt->modules[c - 1]->shortopt == argv[i][1]) { argv 283 maint/mocked/based.c ret = ctxt->modules[c - 1]->hooks.argparse(ctxt, usage, argc - i, &argv[i]); argv 292 maint/mocked/based.c printf("uknown option \"%s\"\n", argv[i]); argv 301 maint/mocked/based.c int main(int argc, char *argv[]) argv 305 maint/mocked/based.c if (mock_based_options(ctxt, false, argc, (const char **) argv) > 0) { argv 313 maint/mocked/based.c crm_log_preinit(NULL, argc, argv); argv 314 maint/mocked/based.c crm_log_init(NULL, LOG_DEBUG, false, true, argc, argv, false); argv 39 scratch.c main(int argc, char **argv) argv 45 scratch.c crm_log_init(NULL, LOG_TRACE, FALSE, TRUE, argc, argv, FALSE); argv 47 scratch.c flag = getopt(argc, argv, OPTARGS); argv 166 tools/attrd_updater.c main(int argc, char **argv) argv 193 tools/attrd_updater.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 199 tools/attrd_updater.c crm_bump_log_level(argc, argv); argv 232 tools/attrd_updater.c crm_log_args(argc, argv); /* Too much? */ argv 242 tools/attrd_updater.c crm_log_args(argc, argv); /* Too much? */ argv 395 tools/cibadmin.c main(int argc, char **argv) argv 420 tools/cibadmin.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 485 tools/cibadmin.c crm_log_args(argc, argv); argv 504 tools/cibadmin.c crm_log_args(argc, argv); argv 509 tools/cibadmin.c crm_log_args(argc, argv); argv 513 tools/cibadmin.c crm_log_args(argc, argv); argv 542 tools/cibadmin.c crm_log_args(argc, argv); argv 547 tools/cibadmin.c crm_xml_add(output, XML_ATTR_VALIDATION, argv[optind]); argv 561 tools/cibadmin.c crm_bump_log_level(argc, argv); argv 568 tools/cibadmin.c printf("%s ", argv[optind++]); argv 246 tools/crm_attribute.c main(int argc, char **argv) argv 272 tools/crm_attribute.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 278 tools/crm_attribute.c crm_bump_log_level(argc, argv); argv 292 tools/crm_attribute.c crm_log_args(argc, argv); argv 343 tools/crm_attribute.c printf("%s ", argv[optind++]); argv 301 tools/crm_diff.c main(int argc, char **argv) argv 317 tools/crm_diff.c processed_args = pcmk__cmdline_preproc(argv, "nopNO"); argv 326 tools/crm_diff.c crm_bump_log_level(argc, argv); argv 69 tools/crm_error.c main(int argc, char **argv) argv 84 tools/crm_error.c processed_args = pcmk__cmdline_preproc(argv, "lrnX"); argv 92 tools/crm_error.c crm_bump_log_level(argc, argv); argv 1161 tools/crm_mon.c main(int argc, char **argv) argv 1176 tools/crm_mon.c if (pcmk__ends_with_ext(argv[0], ".cgi")) { argv 1181 tools/crm_mon.c processed_args = pcmk__cmdline_preproc(argv, "ehimpxEILU"); argv 1201 tools/crm_mon.c crm_bump_log_level(argc, argv); argv 1312 tools/crm_mon.c rc = pcmk__output_new(&out, "text", args->output_dest, argv); argv 1314 tools/crm_mon.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); argv 117 tools/crm_mon.h pcmk__output_t *crm_mon_mk_curses_output(char **argv); argv 126 tools/crm_mon.h pcmk__output_t *crm_mon_mk_xml_output(char **argv); argv 251 tools/crm_mon_curses.c crm_mon_mk_curses_output(char **argv) { argv 259 tools/crm_mon_curses.c retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv); argv 424 tools/crm_mon_curses.c crm_mon_mk_curses_output(char **argv) { argv 426 tools/crm_mon_curses.c return pcmk__mk_text_output(argv); argv 531 tools/crm_node.c main(int argc, char **argv) argv 544 tools/crm_node.c processed_args = pcmk__cmdline_preproc(argv, "NR"); argv 553 tools/crm_node.c crm_bump_log_level(argc, argv); argv 1500 tools/crm_resource.c main(int argc, char **argv) argv 1514 tools/crm_resource.c processed_args = pcmk__cmdline_preproc(argv, "GINSTdginpstuv"); argv 1522 tools/crm_resource.c crm_bump_log_level(argc, argv); argv 1528 tools/crm_resource.c crm_log_args(argc, argv); argv 1559 tools/crm_resource.c argv[optind]); argv 202 tools/crm_rule.c main(int argc, char **argv) argv 223 tools/crm_rule.c processed_args = pcmk__cmdline_preproc(argv, "nopNO"); argv 232 tools/crm_rule.c crm_bump_log_level(argc, argv); argv 245 tools/crm_shadow.c main(int argc, char **argv) argv 274 tools/crm_shadow.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 320 tools/crm_shadow.c crm_bump_log_level(argc, argv); argv 344 tools/crm_shadow.c printf("%s ", argv[optind++]); argv 897 tools/crm_simulate.c main(int argc, char **argv) argv 914 tools/crm_simulate.c processed_args = pcmk__cmdline_preproc(argv, "bdefgiqrtuwxDFGINO"); argv 922 tools/crm_simulate.c crm_bump_log_level(argc, argv); argv 708 tools/crm_ticket.c main(int argc, char **argv) argv 726 tools/crm_ticket.c crm_log_init(NULL, LOG_CRIT, FALSE, FALSE, argc, argv, FALSE); argv 737 tools/crm_ticket.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 743 tools/crm_ticket.c crm_bump_log_level(argc, argv); argv 830 tools/crm_ticket.c if (optind < argc && argv[optind] != NULL) { argv 832 tools/crm_ticket.c while (optind < argc && argv[optind] != NULL) { argv 833 tools/crm_ticket.c CMD_ERR("%s", argv[optind++]); argv 106 tools/crm_verify.c main(int argc, char **argv) argv 136 tools/crm_verify.c flag = pcmk__next_cli_option(argc, argv, &option_index, NULL); argv 157 tools/crm_verify.c crm_bump_log_level(argc, argv); argv 176 tools/crm_verify.c printf("%s ", argv[optind++]); argv 394 tools/crmadmin.c main(int argc, char **argv) argv 411 tools/crmadmin.c processed_args = pcmk__cmdline_preproc(argv, "itBDEHKNPS"); argv 421 tools/crmadmin.c crm_bump_log_level(argc, argv); argv 528 tools/ipmiservicelogd.c main(int argc, char *argv[]) argv 547 tools/ipmiservicelogd.c for (char **arg = &argv[1]; *arg != NULL; ++arg) { argv 549 tools/ipmiservicelogd.c usage(argv[0]); argv 558 tools/ipmiservicelogd.c rv = ipmi_parse_args2(&curr_arg, argc, argv, &args); argv 561 tools/ipmiservicelogd.c usage(argv[0]); argv 110 tools/iso8601.c main(int argc, char **argv) argv 134 tools/iso8601.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 140 tools/iso8601.c crm_bump_log_level(argc, argv); argv 96 tools/notifyServicelogEvent.c main(int argc, char *argv[]) argv 115 tools/notifyServicelogEvent.c flag = pcmk__next_cli_option(argc, argv, &index, NULL); argv 140 tools/notifyServicelogEvent.c if (sscanf(argv[optind], "%" U64TS, &event_id) != 1) { argv 334 tools/stonith_admin.c main(int argc, char **argv) argv 361 tools/stonith_admin.c processed_args = pcmk__cmdline_preproc(argv, "adehilorstvBCDFHQRTU"); argv 370 tools/stonith_admin.c crm_bump_log_level(argc, argv); argv 373 tools/stonith_admin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); argv 439 tools/stonith_admin.c crm_log_args(argc, argv); argv 446 tools/stonith_admin.c crm_log_args(argc, argv); argv 453 tools/stonith_admin.c crm_log_args(argc, argv); argv 459 tools/stonith_admin.c crm_log_args(argc, argv);