Lines Matching defs:line

347 add_comm(benv_des_t *bd, char *base, char *last, char **next, int *line)
366 *line += lines;
373 parse_cmd(benv_des_t *bd, char **next, int *line)
376 char *badeof = "unexpected EOF in %s line %d";
377 char *syntax = "syntax error in %s line %d";
381 * Skip spaces or tabs. New lines increase the line count.
385 (*line)++;
412 exit(_error(NO_PERROR, badeof, bd->name, *line));
422 exit(_error(NO_PERROR, syntax, bd->name, *line));
432 parse_name(benv_des_t *bd, char **next, int *line)
435 char *badeof = "unexpected EOF in %s line %d";
436 char *syntax = "syntax error in %s line %d";
444 exit(_error(NO_PERROR, syntax, bd->name, *line));
455 exit(_error(NO_PERROR, badeof, bd->name, *line));
468 * potentially get the setprop on the next line as the value of this
487 * Parse out the value (RHS) of a setprop line from the boot environment
490 parse_value(benv_des_t *bd, char **next, int *line)
493 char *badeof = "unexpected EOF in %s line %d";
504 (*line)++;
550 exit(_error(NO_PERROR, badeof, bd->name, *line));
578 add_cmd(benv_des_t *bd, char *last, char **next, int *line)
583 if ((cmd = parse_cmd(bd, next, line)) == NULL)
585 name = parse_name(bd, next, line);
586 val = parse_value(bd, next, line);
588 (*line)++;
600 int line;
604 line = 1;
610 add_comm(bd, tok, pend, &tnext, &line);
612 add_cmd(bd, pend, &tnext, &line);
657 static char line[256];
659 if (fgets(line, sizeof (line), stdin) != NULL) {
662 * otherwise discard rest of line.
664 if (nl = strchr(line, '\n'))
669 return (line);
725 char *line;
727 while ((line = get_line()) != NULL)
728 updates += proc_var(line, elist);