busybox/findutils
Denys Vlasenko f92f1d0181 find: use sysconf(_SC_ARG_MAX) to determine the command-line size limit
The find utility uses a hardcoded value of 32 * 1024 as the limit of
the command-line length when calling 'find -exec ... {} +'. This results
in over 4 times more execve() calls than in coreutils' find.

This patch uses the limit defined in system headers.

Based on the patch by  Bartosz Golaszewski <bartekgola@gmail.com>.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2014-06-22 13:54:40 +02:00
..
Config.src make it possible to keep Config/Kbuild snippets in *.c files 2010-05-09 04:22:48 +02:00
find.c find: use sysconf(_SC_ARG_MAX) to determine the command-line size limit 2014-06-22 13:54:40 +02:00
grep.c grep: fix -w match if first match isn't a word, but second is. Closes 4520 2014-02-27 14:56:12 +01:00
Kbuild.src *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xargs.c find: use sysconf(_SC_ARG_MAX) to determine the command-line size limit 2014-06-22 13:54:40 +02:00