Lines Matching defs:line

646 		if (strncmp(line, "add ", MAX(MIN(word_end, 4), 1)) == 0)
647 return (add_stuff(cpl, line, add_cmds, word_end));
648 if (strncmp(line, "clear ", MAX(MIN(word_end, 6), 2)) == 0)
649 return (add_stuff(cpl, line, clear_cmds, word_end));
650 if (strncmp(line, "select ", MAX(MIN(word_end, 7), 3)) == 0)
651 return (add_stuff(cpl, line, select_cmds, word_end));
652 if (strncmp(line, "set ", MAX(MIN(word_end, 4), 3)) == 0)
653 return (add_stuff(cpl, line, set_cmds, word_end));
654 if (strncmp(line, "remove ", MAX(MIN(word_end, 7), 1)) == 0)
655 return (add_stuff(cpl, line, remove_cmds, word_end));
656 if (strncmp(line, "info ", MAX(MIN(word_end, 5), 1)) == 0)
657 return (add_stuff(cpl, line, info_cmds, word_end));
658 return (add_stuff(cpl, line, global_scope_cmds, word_end));
662 return (add_stuff(cpl, line, fs_res_scope_cmds, word_end));
664 return (add_stuff(cpl, line, net_res_scope_cmds, word_end));
666 return (add_stuff(cpl, line, device_res_scope_cmds, word_end));
668 return (add_stuff(cpl, line, rctl_res_scope_cmds, word_end));
670 return (add_stuff(cpl, line, attr_res_scope_cmds, word_end));
672 return (add_stuff(cpl, line, dataset_res_scope_cmds, word_end));
674 return (add_stuff(cpl, line, pset_res_scope_cmds, word_end));
676 return (add_stuff(cpl, line, pcap_res_scope_cmds, word_end));
678 return (add_stuff(cpl, line, mcap_res_scope_cmds, word_end));
680 return (add_stuff(cpl, line, admin_res_scope_cmds, word_end));
682 return (add_stuff(cpl, line, secflags_res_scope_cmds,
818 (void) fprintf(stderr, gettext("On line %d:\n"),
821 (void) fprintf(stderr, gettext("On line %d of %s:\n"),
845 static char line[1024]; /* arbitrary large amount */
852 (void) snprintf(line, sizeof (line),
867 return (line);
886 (void) snprintf(line, sizeof (line),
894 return (line);
911 (void) snprintf(line, sizeof (line),
920 return (line);
1545 gettext("syntax error on line %d\n"),
1549 gettext("syntax error on line %d of %s\n"),
1608 char line[64]; /* should be enough to answer yes or no */
1618 if (fgets(line, sizeof (line), stdin) == NULL)
1621 if (line[0] == '\n')
1623 if (tolower(line[0]) == 'y')
1625 if (tolower(line[0]) == 'n')
1642 char line[ZONENAME_MAX + 128]; /* enough to ask a question */
1666 (void) snprintf(line, sizeof (line),
1669 if ((answer = ask_yesno(B_FALSE, line)) == -1) {
2613 char line[ZONENAME_MAX + 128]; /* enough to ask a question */
2656 (void) snprintf(line, sizeof (line),
2658 if ((answer = ask_yesno(B_FALSE, line)) == -1) {
5912 * and build the command line to execute it.
7070 char line[128]; /* enough to ask a question */
7117 (void) snprintf(line, sizeof (line),
7119 if ((answer = ask_yesno(B_FALSE, line)) == -1) {
7226 * file mode, then we must be in commands-from-the-command-line
7312 char prompt[MAXPATHLEN + ZONENAME_MAX + MAX_RT_STRLEN + 5], *line;
7332 line = gl_get_line(gl, prompt, NULL, -1);
7337 if (line == NULL)
7339 (void) string_to_yyin(line);
7395 * zerr() prints a line number in cmd_file_mode, which we do
7436 * the command line is in argv format, we need to convert when the user
7437 * gives us commands directly from the command line. That is done here by
7579 /* skip this message in one-off from command line mode */