This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Open file limit


Interesting.

What do you have as values for FOPEN_MAX and OPEN_MAX in your headers?

What determines what the max max is?

Cheers and thanks,
Stephen Davies

Chris Faylor <cgf@cygnus.com>  wrote:
> 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@sourceware.cygnus.com



-- 
========================================================================
Stephen Davies Consulting	    		      scldad@sdc.com.au
Adelaide, South Australia.     		          Voice: 08-8177 1595
Computing & Network solutions.	 	      Fax: 08-8177 0133



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]