From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-dev+bounces-31089-garchives=archives.gentoo.org@lists.gentoo.org>) id 1K5T4X-00059i-Lg for garchives@archives.gentoo.org; Sun, 08 Jun 2008 22:09:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 706AEE04E7; Sun, 8 Jun 2008 22:09:08 +0000 (UTC) Received: from postak-1.fzu.cz (pc175e.fzu.cz [147.231.127.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 29456E04E7 for <gentoo-dev@lists.gentoo.org>; Sun, 8 Jun 2008 22:09:08 +0000 (UTC) Received: from postak-3.fzu.cz (postak3.fzu.cz [10.128.1.5]) by postak-1.fzu.cz (8.13.1/8.13.1) with ESMTP id m58M8sjc014891 for <gentoo-dev@lists.gentoo.org>; Mon, 9 Jun 2008 00:08:55 +0200 Received: from [10.18.6.23] (nat5.suchdol.net [82.208.33.254]) (authenticated bits=0) by postak-3.fzu.cz (8.13.6/8.13.6) with ESMTP id m58M96kS015733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <gentoo-dev@lists.gentoo.org>; Mon, 9 Jun 2008 00:09:08 +0200 Message-ID: <484C5875.4040801@gentoo.org> Date: Mon, 09 Jun 2008 00:08:53 +0200 From: =?UTF-8?B?SmFuIEt1bmRyw6F0?= <jkt@gentoo.org> Organization: Gentoo User-Agent: Thunderbird 2.0.0.14 (X11/20080421) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat References: <g2eghs$n3a$1@ger.gmane.org> <484B37D2.305@gentoo.org> <Pine.LNX.4.64.0806072149160.15986@rutrow.coat.com> <m2ve0kcduf.fsf@gmail.com> <484BD368.6050107@gentoo.org> <m2mylwc7g3.fsf@gmail.com> <484C54FB.1000808@gentoo.org> In-Reply-To: <484C54FB.1000808@gentoo.org> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0F8972418359A47D2E44563F" X-Anti-Virus: Kaspersky Anti-Virus for Sendmail with Milter API 5.6.20, bases: 20080608 #840174, check: 20080608 clean X-Spam-Status: No, score=-1.4 required=5.0 ALL_TRUSTED=-1.44 X-Spam-Checker-Version: SpamAssassin 3.1.9-postak (2007-02-13) on postak1.fzu.cz X-Archives-Salt: 62264587-84b5-4c25-b79b-d157d40fe1b5 X-Archives-Hash: 0651c206c2882a37faf923e023428432 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0F8972418359A47D2E44563F Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Alin N=C4=83stac wrote: > I remember that one time I had to split a command like dohtml=20 > "${S}"/something/*.{png,html} because the line was too long. At that=20 > time, bash had a limit of 32K. Now is what ... 1M? from execve(2): Limits on size of arguments and environment Most Unix implementations impose some limit on the total size of the=20 command-line argument (argv) and environment (envp) strings that may be=20 passed to a new program. POSIX.1 allows an implementation to advertise=20 this limit using the ARG_MAX constant (either defined in <limits.h> or=20 available at run time using the call sysconf(_SC_ARG_MAX)). On Linux prior to kernel 2.6.23, the memory used to store the=20 environment and argument strings was limited to 32 pages (defined by the = kernel constant MAX_ARG_PAGES). On architectures with a 4-kB page size,=20 this yields a maximum size of 128 kB. On kernel 2.6.23 and later, most architectures support a size limit=20 derived from the soft RLIMIT_STACK resource limit (see getrlimit(2)).=20 For these architectures, the total size is limited to 1/4 of the allowed = stack size, the limit per string is 32 pages (the kernel constant=20 MAX_ARG_STRLEN), and the maximum number of strings is 0x7FFFFFFF. (This=20 change allows programs to have a much larger argument and/or environment = list. Imposing the 1/4-limit ensures that the new program always has=20 some stack space.) Architectures with no memory management unit are=20 excepted: they maintain the limit that was in effect before kernel 2.6.23= =2E Cheers, -jkt --=20 cd /local/pub && more beer > /dev/mouth --------------enig0F8972418359A47D2E44563F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhMWH4ACgkQamXfqERyJRcteACfQMKEH4J8hwnKGZbL84pf4Vuy 0d8AnRH/fyNOIEGADn4+xbjB1yPseiEr =U6FH -----END PGP SIGNATURE----- --------------enig0F8972418359A47D2E44563F-- -- gentoo-dev@lists.gentoo.org mailing list