Lines Matching defs:line

1026 			bam_print("%s\n", lp->line);
1450 * only the line field is guaranteed to have valid values
1753 bam_print(_("%s\n"), lp->line);
1853 ret = s_fputs(start->line, fp);
3016 (void) snprintf(path, sizeof (path), "%s%s", root, lp->line);
3265 if (strstr(lp->line, "Error:") != NULL ||
3266 strstr(lp->line, "Inode number overflow") != NULL) {
3267 (void) fprintf(stderr, "%s\n", lp->line);
3281 (void) fprintf(stderr, "%s\n", lp->line);
3377 * Prepare mkisofs command line and execute it
3394 * Prepare dd command line to copy the bootblk on the new archive and
4315 curr_cksum_str = strtok(flist.head->line, " \t");
4673 bam_error(_("kernel command on line %d not recognized.\n"),
4714 bam_error(_("module command on line %d not recognized.\n"),
4721 * A line in menu.lst looks like
4739 char save, *cp, *line;
4749 * First save a copy of the entire line.
4750 * We use this later to set the line field.
4752 line = s_strdup(str);
4770 } else if (*str == '\0') { /* blank line */
4816 lp->line = line;
4877 /* record default, old default, and entry line ranges */
4979 free(default_lp->line);
4990 * The following is required since only the line field gets
4995 default_lp->line = s_strdup(buf);
5005 int line, entry, len, n;
5016 line = LINE_INIT;
5028 line_parser(mp, buf, &line, &entry);
5136 bam_print(_("%s\n"), lp->line);
5149 bam_print(_("%s\n"), lp->line);
5202 /* Figure the commands out from the kernel line */
5238 BAM_DPRINTF(("%s: findroot added: line#: %d: entry#: %d\n",
5305 BAM_DPRINTF(("%s: freeing line: %d\n",
5877 is_mounted = strtok(flist.head->line, " \t\n");
5967 char *legacy = strtok(flist.head->line, " \t\n");
5998 is_mounted = strtok(flist.head->line, " \t\n");
6047 mntpt = strtok(flist.head->line, " \t\n");
6185 (void) strtok(flist.head->line, "'");
6512 fstype = strtok(flist.head->line, " \t\n");
7758 /* grab first line of /etc/release */
7892 BAM_DPRINTF(("%s: strtok() zpool status line=%s\n",
7893 fcn, lp->line));
7894 comp1 = strtok(lp->line, " \t");
7896 free(lp->line);
7897 lp->line = NULL;
7900 free(lp->line);
7901 lp->line = comp1;
7906 if (lp->line == NULL)
7908 if (strcmp(lp->line, pool) == 0) {
7923 if (lp->line == NULL)
7925 if (strcmp(lp->line, "mirror") == 0)
7927 if (lp->line[0] == '\0' || strcmp(lp->line, "errors:") == 0)
7944 if (lp->line == NULL)
7946 if (strcmp(lp->line, "mirror") == 0)
7948 if (strcmp(lp->line, "errors:") == 0)
7950 if (strncmp(lp->line, "/dev/dsk/", strlen("/dev/dsk/")) != 0 &&
7951 strncmp(lp->line, "/dev/rdsk/",
7954 lp->line);
7956 (void) strlcpy(dsk, lp->line, sizeof (dsk));
8130 meta = strtok(flist.head->line, " \t");
8157 * Okay we have a mirror. Everything after the first line
8161 if (strstr(lp->line, "/dev/dsk/") == NULL &&
8162 strstr(lp->line, "/dev/rdsk/") == NULL) {
8175 comp1 = strtok(lp->line, " \t");
8183 bam_error(_("cannot parse submirror line in metastat "
8383 BAM_DPRINTF(("%s: last line in entry\n", fcn));
8389 BAM_DPRINTF(("%s: last line in menu\n", fcn));
8399 * root line is considered a match.
8424 /* first line of entry must be bootadm comment */
8431 /* advance to title line */
8445 lp = lp->next; /* advance to root line */
8453 BAM_DPRINTF(("%s: no match line has findroot, "
8465 lp = lp->next; /* advance to kernel line */
8470 BAM_DPRINTF(("%s: no match, line has root, we "
8481 lp = lp->next; /* advance to kernel line */
8518 lp = lp->next; /* advance to module line */
8568 * entry will not have a findroot line.
8589 /* replace title of existing entry and update findroot line */
8591 lp = lp->next; /* title line */
8595 free(lp->line);
8597 lp->line = s_strdup(linebuf);
8600 tlp = lp; /* title line */
8601 lp = lp->next; /* root line */
8614 free(lp->line);
8622 lp->line = s_strdup(linebuf);
8623 BAM_DPRINTF(("%s: adding findroot line: %s\n", fcn, findroot));
8625 /* kernel line */
8631 params = strstr(lp->line, "-s");
8645 free(lp->line);
8648 lp->line = s_strdup(linebuf);
8650 BAM_DPRINTF(("%s: adding new kernel$ line: %s\n",
8665 free(lp->line);
8668 lp->line = s_strdup(linebuf);
8670 BAM_DPRINTF(("%s: adding new kernel$ line: %s\n",
8680 free(lp->line);
8683 lp->line = s_strdup(linebuf);
8685 BAM_DPRINTF(("%s: adding new module$ line: %s\n",
8690 /* module line */
8701 free(lp->line);
8704 lp->line = s_strdup(linebuf);
8707 BAM_DPRINTF(("%s: adding new module$ line: %s\n",
8879 * Using $ISADIR as the default line, we have an entry which works
8885 /* Figure out where the kernel line should point */
8977 /* delete saved old default line */
9150 * line. On the other hand, if someone runs:
9290 bam_error(_("no command at line %d\n"), lp->lineNum);
9300 bam_error(_("duplicate command %s at line %d of "
9322 lp->line = s_calloc(1, len);
9323 (void) snprintf(lp->line, len, "%s%s%d",
9325 BAM_DPRINTF(("%s: wrote new global line: %s\n", fcn, lp->line));
9335 str = found->line;
9343 free(found->line);
9344 found->line = s_calloc(1, len);
9345 (void) snprintf(found->line, len,
9348 BAM_DPRINTF(("%s: replaced global line with: %s\n", fcn, found->line));
9414 * check whether the archive line needs to change.
9432 BAM_DPRINTF(("%s: no module/archive line for entry: "
9439 BAM_DPRINTF(("%s: no module/archive line for entry: %d\n",
9456 BAM_DPRINTF(("%s: no change for line: %s\n", fcn, lp->arg));
9468 BAM_DPRINTF(("%s: replaced for line: %s\n", fcn, lp->line));
9558 bam_error(_("no kernel line found in entry %d\n"),
9651 * We have changed the kernel line, so we may need
9652 * to update the archive line as well.
9808 * If we have changed the kernel line, we may need to update
9809 * the archive line as well.
9812 BAM_DPRINTF(("%s: rc line exists, replaced kernel, same "
9822 BAM_DPRINTF(("%s: rc line exists, same kernel, but new "
9959 bam_error(_("no command at line %d\n"),
9969 bam_error(_("duplicate command %s at line %d of "
10007 if (lp->line)
10008 free(lp->line);
10201 bam_error(_("the following line is too long "
10337 lp->line = s_strdup(s);