[PATCHv2] Use sendfile to copy data between file descriptors

Mike Frysinger vapier at gentoo.org
Tue Oct 21 12:37:53 UTC 2014


On 21 Oct 2014 11:01, Lauri Kasanen wrote:
> On Tue, Oct 21, 2014, at 08:46, Mike Frysinger wrote:
> > 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.
> 
> Yes, I know? The point was to tell the user configuring busybox that.

chill dog.  the fact you knew it doesn't mean the submitter did.
nowhere did i say you were ignorant.
-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/3a8a91f5/attachment.asc>


More information about the busybox mailing list