split: support split -n on larger pipe input
commitbb9dbcbbfd5c3159f975f39336a33319c6c5df04
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Mar 2023 20:58:12 +0000 (7 12:58 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Mar 2023 21:41:46 +0000 (7 13:41 -0800)
treef707acbfea996e21bfc6c653951db604e969b041
parent35ac97e0d601d5a20bf986bad052f0f94a504561
split: support split -n on larger pipe input

* bootstrap.conf (gnulib_modules): Add free-posix, tmpfile.
* src/split.c (copy_to_tmpfile): New function.
(input_file_size): Use it to split larger files when sizes cannot
easily be determined via fstat or lseek.  See Bug#61386#235.
* tests/split/l-chunk.sh: Mark tests of /dev/zero as
very expensive since they exhaust /tmp.
NEWS
bootstrap.conf
doc/coreutils.texi
src/split.c
tests/split/l-chunk.sh