delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; q=dns; s=default; b=DwO/Nr | |
MwtT76TkXnRxdwUzJNmoqPoeR0JoiyeMSZ/nkx9S4/V/tkJ3E0agRbZzTvKSeZGm | |
gMWk1FmL+Gkji5HqqoLmLgS1FUfsd5CczZB5rjVnnLzFEnXKT29RDqFJecfVgomM | |
Yl3c+bAdGAMO2C12/amt3SH3bmSvyx5Yl66oU= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; s=default; bh=fpf18nQHB7Eb | |
EnWRAc6kMZWs7Bo=; b=m3qdJe5XCO9Db3Go5Sb+xHekH/wewm2I/QY6iVZOwhFG | |
MXoTfgbZQ02mUXT16Xs3o170eL3N0Ai+0fF81nm6xf1iYz/QGP4mXz8vysQTUNIH | |
NH0d9bdRgcCOqAfXCTAkMTkPc8LbsysezUCLA1BvAaA+kDt3qI7mcn8JMvVuarg= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-3.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
X-HELO: | mx1.redhat.com |
Message-ID: | <5242D173.2020901@redhat.com> |
Date: | Wed, 25 Sep 2013 06:05:07 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [PATCH] tests: don't assume getdtablesize () <= 10000000 |
References: | <517EF2F1 DOT 2030802 AT cs DOT ucla DOT edu> <5241DBE6 DOT 4000007 AT redhat DOT com> <20130925043225 DOT GB1192 AT ednor DOT casa DOT cgf DOT cx> |
In-Reply-To: | <20130925043225.GB1192@ednor.casa.cgf.cx> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
--W5r3evvXXhR7NblffgeA24DJGT04WBUEf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/24/2013 10:32 PM, Christopher Faylor wrote: >> This patch causes failures on at least test-fcntl and test-dup2 on >> cygwin (both 32-bit and 64-bit); there, getdtablesize() currently >> returns the current runtime value, but this value starts at 256, and >> automatically expands as needed at runtime up to 3200. I think cygwin >> should be patched to make getdtablesize() return a constant 3200 (rather >> than the current runtime value); >=20 > Why? What does "3200" have to do with anything? There is not supposed > to be a hard-coded upper limit. >=20 But there IS a hard-coded limit: http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.h?rev=3D1.59&= content-type=3Dtext/x-cvsweb-markup&cvsroot=3Dsrc /* Initial and increment values for cygwin's fd table */ #define NOFILE_INCR 32 /* Maximum size we allow expanding to. */ #define OPEN_MAX_MAX (100 * NOFILE_INCR) My point is that on all other systems, even if the dtable itself dynamically grows, getdtablesize() returns the maximum it can grow to, not its current size. Cygwin's behavior is the odd man out, and is causing grief in the gnulib test suite. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --W5r3evvXXhR7NblffgeA24DJGT04WBUEf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSQtFzAAoJEKeha0olJ0NqotEH/2Q9D0KWx3D+96kU4jHxrHFq RIZs5FrSOLu+oFw8ulBHme7FtZXq/OwyR7YvJWp/rv+gs16IHYl0kDh1XMDskhrf LGFNnVhtXLpX6zGJQq4Bw/PCN0/uSPfne9/ZhGHjvVLGOe76y+qW6Vfria+6umkO y5DHyh7LzIR6DVJb3Erj3R6cDEBAaZZYSaYnMBeUdZWFUW3jylG8/IfWYA7Jsgpp kkTZEbZzGnf65iD6I+XB6QDA5tK02hsagWwlMPrWM4VnIYEqYSfiJd2SPS/WnMYR FrrIctMftTJ6P9jdhF0InONAe14VOzuGFAa2FrkJr37HEu+UmrzTj/CfbAQdCcY= =m3bz -----END PGP SIGNATURE----- --W5r3evvXXhR7NblffgeA24DJGT04WBUEf--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |