Lines Matching defs:line
631 * Print one statistic line according to the definitions in 'lf'.
637 char *line;
638 int pos = 0; /* position in the printed line */
639 int len = MAXLINE; /* the length of the line */
640 int left = len; /* chars left to use in the line */
642 line = ZALLOC(len);
649 if (((used = ff->pff_format(line, pos, left, ff,
654 line = REALLOC(line, len);
655 if (((used = ff->pff_format(line, pos, left, ff,
657 die(gettext(ERR_STATS_FORMAT), line);
663 line[pos++] = ' ';
669 (void) printf("%s\n", line);
670 FREE(line);
674 * Print a statistics header line for a given resource type.
679 poolstat_line_format_t *lf; /* line format */
681 char *line;
682 int pos = 0; /* position in the printed line */
683 int len = MAXLINE; /* the length of the line */
684 int left = len; /* chars left to use in the line */
695 line = ZALLOC(len);
697 int used; /* used chars in line */
702 if (((used = header_f(line, pos, left, ff, NULL)) + 1)
707 line = REALLOC(line, len);
708 if (((used = header_f(line, pos, left, ff,
710 die(gettext(ERR_STATS_FORMAT), line);
716 line[pos++] = ' ';
722 /* only header line with non space characters should be printed */
724 while (*(line + pos) != '\n') {
725 if (!isspace(*(line + pos))) {
726 (void) printf("%s\n", line);
732 FREE(line);