D and i/o
Jonathan Marler
johnnymarler at gmail.com
Mon Nov 11 20:10:07 UTC 2019
On Monday, 11 November 2019 at 19:36:22 UTC, Jacob Carlborg wrote:
> On 2019-11-11 02:04, sarn wrote:
>
>> FTR, that sounds like Linux's sendfile and splice syscalls.
>> They're not portable, though.
>
> "sendfile" is intended to send a file over a socket?
You could use it to send a file over a socket. However, it
should be usable to forward data between any 2 file descriptors.
I believe that `cat` uses it to forward a file handle to stdio
for example. Or you could use it to implement `cp` to copy from
content from one file to another.
More information about the Digitalmars-d
mailing list