delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/19/15:24:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sun, 19 Mar 2000 15:23:32 -0500
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Open file limit
Message-ID: <20000319152332.A10069@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, cygwin AT sourceware DOT cygnus DOT com
References: <200003190058 DOT LAA17702 AT mustang DOT sdc DOT com DOT au>
Mime-Version: 1.0
User-Agent: Mutt/1.1.8i
In-Reply-To: <200003190058.LAA17702@mustang.sdc.com.au>; from scldad@sdc.com.au on Sun, Mar 19, 2000 at 11:28:42AM +1030

On Sun, Mar 19, 2000 at 11:28:42AM +1030, Stephen Davies wrote:
>I have seen this question several times but have never seen an answer.
>
>How does one increase the 20 open file limit set by cygwin gcc headers and 
>presumably reflecting some system limit?

I guess I have finally seen this complaint enough to investigate.

Consider this program:

#include <stdio.h>
int
main(int argc, char **argv)
{
  int i;
  for (i = 0; i < 100; i++)
    {
      FILE *f = fopen("/dev/null", "r");
      if (!f)
	break;
      printf("%d\n", i);
    }
  exit(0);
}

When I run it, I see numbers up to 99.  That means that there is no
20 open file limit, AFAICT.  Maybe this is just in recent snapshots.

If so, it will be fixed in the next release.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019