[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Current version of ARG_MAX flexibility patch
From: |
James Youngman |
Subject: |
Current version of ARG_MAX flexibility patch |
Date: |
Mon, 5 May 2008 23:53:41 +0100 |
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
current-polzer-xargs-patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Current version of ARG_MAX flexibility patch,
James Youngman <=