[PATCHv2] Use sendfile to copy data between file descriptors
Mike Frysinger
vapier at gentoo.org
Tue Oct 21 05:46:07 UTC 2014
On 20 Oct 2014 21:00, Lauri Kasanen wrote:
> > +config FEATURE_USE_SENDFILE
> > + bool "Use sendfile system call"
> > + default y
> > + help
> > + When enabled, busybox will use the kernel sendfile() function
> > + instead of read/write loops where applicable.
>
> Please include the kernel version requirement here.
`man 2 sendfile`:
In Linux kernels before 2.6.33, out_fd must refer to a socket.
Since Linux 2.6.33 it can be any file. If it is a regular file,
then sendfile() changes the file offset appropriately.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20141021/d78575bf/attachment.asc>
More information about the busybox
mailing list