Quote:
Originally Posted by
jim mcnamara
[...] ARG_MAX is usually way larger then 4096. And is the one that counts.
Nitpicking a bit for the records:
If the run time limit can be modified, ARG_MAX from the headers won't reflect it.
But "getconf ARG_MAX" (using the libc call "sysconf") usually is correct.
However, on systems without fixed limit (e.g. Linux-2.6.23 ff., or Hurd), even getconf might report some obsolete historic default value (and it does so on Linux).
Possible reasons might be: either trying not to confuse autoconf scripts and alike, or the libc just couldn't catch up yet.