hush/include
Denys Vlasenko 04c1417602 libbb: use ARG_MAX for bb_arg_max() only if it's 60k+
Sometimes ARG_MAX is small (like 32k) yet sysconf(_SC_ARG_MAX)
is big, and people prefer using the bigger value.

OTOH, with sufficiently large ARG_MAX, further wins from
sysconf(_SC_ARG_MAX) being bigger are exponentially smaller:
you can see 4 times fewer fork+execs when you run find, but
when each execed process already takes a thousand parameters
it's likely execution time is dominated by what that process
does with each parameter.

Thus, with this change ARG_MAX is used if it's sufficiently big,
otherwise sysconf(_SC_ARG_MAX) is used.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2014-11-26 15:17:59 +01:00
..
.gitignore .gitignore: add missing ignores 2011-03-06 19:54:15 +01:00
applet_metadata.h applet_tables: do not include libbb.h, that header ir for target builds 2011-03-28 01:23:38 +02:00
applets.src.h taskset: support CPU masks for more than 64 CPUs 2014-08-17 19:36:22 +02:00
ar.h
bb_archive.h rpm: use "create+rename" method of replacing existing files 2013-02-20 15:58:42 +01:00
bb_e2fs_defs.h Whitespace fixes 2013-07-30 11:52:58 +02:00
busybox.h *: declare strings with ALIGN1, as appropriate 2012-07-24 15:56:37 +02:00
dump.h
fix_u32.h
grp_.h whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
inet_common.h
libbb.h libbb: use ARG_MAX for bb_arg_max() only if it's 60k+ 2014-11-26 15:17:59 +01:00
liblzo_interface.h Whitespace fixes 2013-07-30 11:52:58 +02:00
platform.h Rename INIT_LAST to INIT_FUNC to avoid confusion 2014-06-30 16:26:57 +02:00
pwd_.h whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
rtc_.h
shadow_.h whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
unicode.h ash,hush: recheck LANG before every line input 2011-03-23 17:59:27 +01:00
usage.src.h move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
volume_id.h blkid: if parameters are given, do not scan /dev 2012-03-03 15:09:07 +01:00
xatonum.h udhcp: finish support of classless static routes 2011-12-16 17:05:52 +01:00
xregex.h