Searched refs:total_lines (Results 1 – 5 of 5) sorted by relevance
/coreutils/src/ |
D | head.c | 511 size_t total_lines = 0; /* Total number of newlines in all buffers. */ in elide_tail_lines_pipe() local 551 total_lines += tmp->nlines; in elide_tail_lines_pipe() 570 if (n_elide < total_lines - first->nlines) in elide_tail_lines_pipe() 575 total_lines -= first->nlines; in elide_tail_lines_pipe() 597 ++total_lines; in elide_tail_lines_pipe() 600 for (tmp = first; n_elide < total_lines - tmp->nlines; tmp = tmp->next) in elide_tail_lines_pipe() 604 total_lines -= tmp->nlines; in elide_tail_lines_pipe() 608 if (n_elide < total_lines) in elide_tail_lines_pipe() 610 size_t n = total_lines - n_elide; in elide_tail_lines_pipe()
|
D | wc.c | 56 static uintmax_t total_lines; variable 613 total_lines_overflow |= ckd_add (&total_lines, total_lines, lines); in wc() 749 total_lines = total_words = total_chars = total_bytes = max_line_length = 0; in main() 945 total_lines = UINTMAX_MAX; in main() 968 write_counts (total_lines, total_words, total_chars, total_bytes, in main()
|
D | tail.c | 617 size_t total_lines = 0; /* Total number of newlines in all buffers. */ in pipe_lines() local 647 total_lines += tmp->nlines; in pipe_lines() 666 if (total_lines - first->nlines > n_lines) in pipe_lines() 669 total_lines -= first->nlines; in pipe_lines() 698 ++total_lines; in pipe_lines() 703 for (tmp = first; total_lines - tmp->nlines > n_lines; tmp = tmp->next) in pipe_lines() 704 total_lines -= tmp->nlines; in pipe_lines() 710 if (total_lines > n_lines) in pipe_lines() 715 for (j = total_lines - n_lines; j; --j) in pipe_lines()
|
D | sort.c | 3380 size_t total_lines, bool is_lo_child) in init_node() argument 3385 struct line *lo = dest - total_lines; in init_node() 3406 total_lines, true); in init_node() 3409 total_lines, false); in init_node() 3528 mergelines_node (struct merge_node *restrict node, size_t total_lines, in mergelines_node() argument 3533 size_t to_merge = MAX_MERGE (total_lines, node->level); in mergelines_node() 3635 size_t total_lines, FILE *tfp, char const *temp_output) in merge_loop() argument 3648 mergelines_node (node, total_lines, tfp, temp_output); in merge_loop() 3673 size_t const total_lines; member 3695 sortlines (args->lines, args->nthreads, args->total_lines, in sortlines_thread() [all …]
|
D | pr.c | 1911 int total_lines, total_lines_1, chars_per_column_1, chars_if_truncate; in init_store_cols() local 1912 if (ckd_mul (&total_lines, lines_per_body, columns) in init_store_cols() 1913 || ckd_add (&total_lines_1, total_lines, 1) in init_store_cols() 1915 || ckd_mul (&chars_if_truncate, total_lines, chars_per_column_1)) in init_store_cols() 1923 end_vector = xnmalloc (total_lines, sizeof *end_vector); in init_store_cols()
|