Date: Wed, 27 Feb 2008 11:18:33 +0100 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Subject: Re: argument list too long Message-ID: <200802271118.35262.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <47C52A64.5000701@locolomo.org> References: <20080227100132.G1831@wojtek.tensor.gdynia.pl> <47C52A64.5000701@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 27 February 2008 10:16:20 Erik Norgaard wrote:
> Then a sysctl -a seems to indicate it is also a kernel
> limitation on FreeBSD:
>
> kern.argmax: 262144
>
> I'm not certain that this is the limit of command line arguments, and I
> haven't tried to set it. Nor is it clear to me if this is the number
> of arguments or the number of characters in the argument string. In the
> latter case, a "few thousand" argumenst could easily reach that limit.
/usr/include/sys/syslimits.h:
#if defined(__arm__) || defined(__powerpc__)
#define ARG_MAX 65536 /* max bytes for an exec function */
#else
#define ARG_MAX 262144 /* max bytes for an exec function */
#endif
In other words: there's no limit to the amount of arguments, but the byte
length of the arguments.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802271118.35262.fbsd.questions>
