[PATCH] Config: select PLATFORM_LINUX if using sendfile()
Denys Vlasenko
vda.linux at googlemail.com
Wed Dec 10 12:47:14 UTC 2014
Applied, thanks!
On Wed, Dec 10, 2014 at 1:34 PM, Bartosz Golaszewski
<bartekgola at gmail.com> wrote:
> Man entry for sendfile:
>
> Not specified in POSIX.1-2001, or other standards.
>
> Other UNIX systems implement sendfile() with different semantics and
> prototypes. It should not be used in portable programs.
>
> Select PLATFORM_LINUX if enabling FEATURE_USE_SENDFILE.
>
> Signed-off-by: Bartosz Golaszewski <bartekgola at gmail.com>
> ---
> Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Config.in b/Config.in
> index 285fe0a..07b4bf3 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -267,6 +267,7 @@ config PAM
> config FEATURE_USE_SENDFILE
> bool "Use sendfile system call"
> default y
> + select PLATFORM_LINUX
> help
> When enabled, busybox will use the kernel sendfile() function
> instead of read/write loops to copy data between file descriptors
> --
> 2.1.3
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list