List Info

Thread: Current version of ARG_MAX flexibility patch




Current version of ARG_MAX flexibility patch
user name
2008-05-05 17:53:41
This patch is my current merge of Leslie's 2007 SOC changes
which made
findutils more resilient to the fact that sometimes the
system that
findutils is running on has an actual arg max which is
smaller than
the compile-time ARG_MAX, or is computed sufficiently
difficulty to
defeat the previous algorithm.

Leslie also did some work on other areas for SOC, and while
I plan to
merge those too, they're not in this patch.

I think the patch is pretty much in a state where it can be
applied to
4.5.x.   The algorithm for choosing a new argv value is
inefficient
(O(N)) but in the usual case that doesn't need to happen. 
If we want
to make it faster we can improve the algorithm and also
switch from
execvp() to execv() since we would only need to search the
PATH once
for the called utility as $PATH won't change.

James

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )