<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/sysconf.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2014-12-24T00:46:29+00:00</updated>
<entry>
<title>libbb: add sanity check in bb_arg_max()</title>
<updated>2014-12-24T00:46:29+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2014-12-24T00:46:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ca9c4653a95907e32674c2eb5dc3921dc8e6f1a0'/>
<id>urn:sha1:ca9c4653a95907e32674c2eb5dc3921dc8e6f1a0</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: use ARG_MAX for bb_arg_max() only if it's 60k+</title>
<updated>2014-11-26T14:17:59+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2014-11-26T14:17:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=04c14176023c65550fd46c2e44a1aa04d426d69a'/>
<id>urn:sha1:04c14176023c65550fd46c2e44a1aa04d426d69a</id>
<content type='text'>
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 &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: fix compile failure if both ARG_MAX and _SC_ARG_MAX are defined</title>
<updated>2014-06-25T13:39:27+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2014-06-25T13:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5aeae36e2b8bcee19c8eb189f55b19febaab4c42'/>
<id>urn:sha1:5aeae36e2b8bcee19c8eb189f55b19febaab4c42</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: use a wrapper around sysconf(_SC_CLK_TCK) to save a few bytes</title>
<updated>2014-06-22T12:01:13+00:00</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartekgola@gmail.com</email>
</author>
<published>2014-06-22T12:01:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5d2e409ef8224dc32fde59702e8ec90b231441ed'/>
<id>urn:sha1:5d2e409ef8224dc32fde59702e8ec90b231441ed</id>
<content type='text'>
function                                             old     new   delta
bb_sc_clk_tck                                          -      10     +10
timescmd                                             118     113      -5
print_route                                         1763    1758      -5
mpstat_main                                         1288    1283      -5
iostat_main                                         1947    1942      -5
INET_setroute                                        879     871      -8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/5 up/down: 10/-28)            Total: -18 bytes
Signed-off-by: Bartosz Golaszewski &lt;bartekgola@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>find: use sysconf(_SC_ARG_MAX) to determine the command-line size limit</title>
<updated>2014-06-22T11:54:40+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2014-06-22T11:54:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f92f1d0181853b989f9377debb56902e3e21c9a8'/>
<id>urn:sha1:f92f1d0181853b989f9377debb56902e3e21c9a8</id>
<content type='text'>
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 &lt;bartekgola@gmail.com&gt;.

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
