Re: [PATCH] PR libstdc++/83279 handle sendfile not copying entire file

2018-01-05 Thread Jonathan Wakely
On 14/12/17 21:53 +, Jonathan Wakely wrote: I failed to notice that the man page for sendfile(3) says it won't copy more than 2GiB. This refactors the code to first try sendfile (because it's fast if it works) and if that fails, or stops before the end of the file, then use filebufs to copy

[PATCH] PR libstdc++/83279 handle sendfile not copying entire file

2017-12-14 Thread Jonathan Wakely
I failed to notice that the man page for sendfile(3) says it won't copy more than 2GiB. This refactors the code to first try sendfile (because it's fast if it works) and if that fails, or stops before the end of the file, then use filebufs to copy what's left over. I'm not adding a test because