Home
last modified time | relevance | path

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

/coreutils/tests/head/
Dhead-elide-tail.pl66 for my $file_size (0..20)
70 my $input = substr $s, 0, $file_size;
71 my $out_len = $n_elide < $file_size ? $file_size - $n_elide : 0;
73 my $t = ["elideb$file_size-$n_elide", "--bytes=-$n_elide",
86 for my $file_size (0..21)
90 my $input = substr $s, 0, 2 * $file_size;
91 my $out_len = $n_elide < $file_size ? $file_size - $n_elide : 0;
93 my $t = ["elidel$file_size-$n_elide", "--lines=-$n_elide",
/coreutils/src/
Dtruncate.c320 off_t file_size = -1; in main() local
324 file_size = sb.st_size; in main()
334 file_size = file_end; in main()
342 if (file_size < 0) in main()
346 size = file_size; in main()
348 rsize = file_size; in main()
Dsplit.c883 ssize_t initial_read, off_t file_size) in lines_chunk_split() argument
887 intmax_t rem_bytes = file_size % n; in lines_chunk_split()
888 off_t chunk_size = file_size / n; in lines_chunk_split()
895 if (k > 1 && 0 < file_size) in lines_chunk_split()
916 while (n_written < file_size) in lines_chunk_split()
928 MIN (bufsize, file_size - n_written)); in lines_chunk_split()
1009 ssize_t initial_read, off_t file_size) in bytes_chunk_extract() argument
1016 start = (k - 1) * (file_size / n) + MIN (k - 1, file_size % n); in bytes_chunk_extract()
1017 end = k == n ? file_size : k * (file_size / n) + MIN (k, file_size % n); in bytes_chunk_extract()
1358 off_t file_size = OFF_T_MAX; in main() local
[all …]
Dtac.c444 off_t file_size; in tac_file() local
466 file_size = lseek (fd, 0, SEEK_END); in tac_file()
468 ok = (file_size < 0 || isatty (fd) in tac_file()
470 : tac_seekable (fd, filename, file_size)); in tac_file()
Dshuf.c149 off_t file_size; in input_size() local
155 file_size = stat_buf.st_size; in input_size()
163 file_size -= input_offset; in input_size()
165 return file_size; in input_size()
Dsort.c1533 off_t file_size; in sort_buffer_size() local
1543 file_size = st.st_size; in sort_buffer_size()
1550 file_size = INPUT_FILE_SIZE_GUESS; in sort_buffer_size()
1563 worst_case = file_size * worst_case_per_input_byte + 1; in sort_buffer_size()
1564 if (file_size != worst_case / worst_case_per_input_byte in sort_buffer_size()