Home
last modified time | relevance | path

Searched refs:n_lines (Results 1 – 6 of 6) sorted by relevance

/coreutils/src/
Dshuf.c176 randint n_lines = 0; in read_input_reservoir_sampling() local
184 while (n_lines < k in read_input_reservoir_sampling()
186 readlinebuffer_delim (&rsrv[n_lines], in, eolbyte)) != nullptr) in read_input_reservoir_sampling()
188 n_lines++; in read_input_reservoir_sampling()
191 if (n_lines >= n_alloc_lines) in read_input_reservoir_sampling()
195 memset (&rsrv[n_lines], 0, in read_input_reservoir_sampling()
217 randint j = randint_choose (s, n_lines + 1); /* 0 .. n_lines. */ in read_input_reservoir_sampling()
220 while (readlinebuffer_delim (line, in, eolbyte) != nullptr && n_lines++); in read_input_reservoir_sampling()
222 if (! n_lines) in read_input_reservoir_sampling()
233 return MIN (k, n_lines); in read_input_reservoir_sampling()
[all …]
Dtail.c518 file_lines (char const *pretty_filename, int fd, uintmax_t n_lines, in file_lines() argument
525 if (n_lines == 0) in file_lines()
547 --n_lines; in file_lines()
561 if (n_lines-- == 0) in file_lines()
605 pipe_lines (char const *pretty_filename, int fd, uintmax_t n_lines, in pipe_lines() argument
666 if (total_lines - first->nlines > n_lines) in pipe_lines()
691 if (n_lines == 0) in pipe_lines()
703 for (tmp = first; total_lines - tmp->nlines > n_lines; tmp = tmp->next) in pipe_lines()
710 if (total_lines > n_lines) in pipe_lines()
715 for (j = total_lines - n_lines; j; --j) in pipe_lines()
[all …]
Dhead.c649 uintmax_t n_lines, in elide_tail_lines_seekable() argument
674 const bool all_lines = !n_lines; in elide_tail_lines_seekable()
677 if (n_lines && bytes_read && buffer[bytes_read - 1] != line_end) in elide_tail_lines_seekable()
678 --n_lines; in elide_tail_lines_seekable()
697 if (n_lines-- == 0) in elide_tail_lines_seekable()
Dsplit.c726 lines_split (intmax_t n_lines, char *buf, idx_t bufsize) in lines_split() argument
756 if (++n >= n_lines) in lines_split()
/coreutils/tests/head/
Dhead-pos.sh37 n_lines=50000
39 echo $n_lines > exp-n || framework_failure_
41 (head -n-$n_lines>/dev/null; wc -l) < in2 > n
/coreutils/tests/
Dfilefrag-extent-compare17 my $n_lines = @line;
18 $n_lines == 2
19 or die "$ME: expected exactly two input lines; got $n_lines\n";