Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Fri, 19 Jan 2001 12:01:21 +0100 From: Corinna Vinschen To: cygwin-developers AT cygwin DOT com Subject: Re: some header bugs Message-ID: <20010119120121.T4318@cobold.vinschen.de> Reply-To: Corinna Vinschen Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <200101180153 DOT UAA26883 AT envy DOT delorie DOT com> <20010117205946 DOT A15347 AT redhat DOT com> <200101180250 DOT VAA27333 AT envy DOT delorie DOT com> <3A651023 DOT D8F0A461 AT yahoo DOT com> <20010117223459 DOT A16071 AT redhat DOT com> <200101180341 DOT WAA27702 AT envy DOT delorie DOT com> <20010117224907 DOT C16071 AT redhat DOT com> <200101180355 DOT WAA27821 AT envy DOT delorie DOT com> <20010117225837 DOT D16071 AT redhat DOT com> <200101180403 DOT XAA27911 AT envy DOT delorie DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101180403.XAA27911@envy.delorie.com>; from dj@delorie.com on Wed, Jan 17, 2001 at 11:03:13PM -0500 On Wed, Jan 17, 2001 at 11:03:13PM -0500, DJ Delorie wrote: > > > It's really not needed anymore since cygwin, like I presume most other > > "UNIXes" auto-grows its fd table. > > Most unixes use setrlimit() instead. - I have sent a patch to Chet weeks ago so that bash dosn't rely on the setdtablesize return code when compiled for Cygwin. The problem is that setdtablesize only exists on some exotic UNIX variants (Sequent? I don't know for sure) and Cygwin - there's no standard at all. - I implemented a preliminary version of setrlimit() between Christmas and New Year which currently only supports RLIMIT_CORE as parameter. I have changed it so that RLIMIT_NOFILE is supported as well now by simply calling setdtablesize(). That should solve most of the probs since most packages rely in fact on setrlimit before checking for setdtablesize (if any). Corinna