3 ms·
> sendfile() is a system call that sends data between two file descriptors Not quite. As Pike complains, the first file descriptor must be mmap-able and the s
by jbarham 16y ago
> sendfile() is a system call that sends data between two file descriptors
Not quite. As Pike complains, the first file descriptor must be mmap-able and the second must be a socket. I think his objection is that such narrowly applicable system calls do not belong in what should be a general purpose API.
- jbjohns 16y agoOn Linux. I don't believe all Unix OSes have that requirement.