Lines Matching defs:line

562 		if (MINI_STR(line, "create ", word_end, 2) == 0)
563 return (add_stuff(cpl, line, global_create_cmds,
565 if (MINI_STR(line, "destroy ", word_end, 1) == 0)
566 return (add_stuff(cpl, line, global_destroy_cmds,
568 if (MINI_STR(line, "export ", word_end, 3) == 0)
569 return (add_stuff(cpl, line, global_export_cmds,
571 if (MINI_STR(line, "list ", word_end, 1) == 0)
572 return (add_stuff(cpl, line, global_list_cmds,
574 if (MINI_STR(line, "select ", word_end, 1) == 0)
575 return (add_stuff(cpl, line, global_select_cmds,
577 return (add_stuff(cpl, line, global_scope_cmds, word_end));
582 return (add_stuff(cpl, line, non_ncp_scope_cmds, word_end));
584 if (MINI_STR(line, "create ", word_end, 2) == 0)
585 return (add_stuff(cpl, line, ncp_create_cmds,
587 if (MINI_STR(line, "destroy ", word_end, 1) == 0)
588 return (add_stuff(cpl, line, ncp_destroy_cmds,
590 if (MINI_STR(line, "export ", word_end, 3) == 0)
591 return (add_stuff(cpl, line, ncp_export_cmds,
593 if (MINI_STR(line, "list ", word_end, 1) == 0)
594 return (add_stuff(cpl, line, ncp_list_cmds, word_end));
595 if (MINI_STR(line, "select ", word_end, 1) == 0)
596 return (add_stuff(cpl, line, ncp_select_cmds,
598 return (add_stuff(cpl, line, ncp_scope_cmds, word_end));
755 /* Prints usage for command line options */
768 /* Prints the line number of the current command if in command-file mode */
777 (void) fprintf(stderr, gettext("On line %d:\n"),
780 (void) fprintf(stderr, gettext("On line %d of %s:\n"),
868 char line[64]; /* should be enough to answer yes or no */
878 if (fgets(line, sizeof (line), stdin) == NULL)
881 if (line[0] == '\n')
883 if (tolower(line[0]) == 'y')
885 if (tolower(line[0]) == 'n')
899 * file mode, then we must be in commands-from-the-command-line
964 char *line;
997 line = gl_get_line(gl, prompt, NULL, -1);
1002 if (line == NULL)
1004 if (string_to_yyin(line) != NWAM_OK)
4022 char line[NWAM_MAX_VALUE_LEN];
4067 if (fgets(line, sizeof (line), stdin) == NULL)
4071 if (line[0] != '\n') {
4077 vals = str_to_nwam_value(object_type, line, pt_type,
4151 * command-line mode (# nwamcfg list or # nwamcfg "select loc test; list")
4218 * nerr() prints a line number in cmd_file_mode, which we do
4240 * If -d was passed on the command-line, we need to
4243 * but in that case, the line will go through the lexer
4332 /* command-line mode */