]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: simplify partial writes etc. in 'yes'
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jun 2016 22:58:44 +0000 (00:58 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jun 2016 23:02:08 +0000 (01:02 +0200)
commit4cdb1703aff044de44d27e0558714542197f6dad
tree932f27a1f6ac66a3882895aa84302a9acf291e1b
parent5845664c8c61faf004eb3ef9979e770f794108c1
maint: simplify partial writes etc. in 'yes'

* src/yes.c: Include full-write.h.
(main): Use full_write, not write, to simplify handling of partial
writes.  Don't bother using stdio to output data; just use
full_write with a buffer as large as needed.  Reuse operand
strings if possible, and if the buffer would otherwise be large.
src/yes.c