From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 10:19:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 576471065674 for ; Wed, 27 Feb 2008 10:19:35 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2775B13C46A for ; Wed, 27 Feb 2008 10:19:29 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 9EE191CDE2; Wed, 27 Feb 2008 01:19:27 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Wed, 27 Feb 2008 11:18:33 +0100 User-Agent: KMail/1.9.7 References: <20080227100132.G1831@wojtek.tensor.gdynia.pl> <47C52A64.5000701@locolomo.org> In-Reply-To: <47C52A64.5000701@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802271118.35262.fbsd.questions@rachie.is-a-geek.net> Cc: Wojciech Puchar Subject: Re: argument list too long X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 10:19:35 -0000 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.