delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/08/21:39:22

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 8 Nov 2000 21:38:06 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: Bug report: gcc + cygwin
Message-ID: <20001108213806.A7278@redhat.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <DD38D67B9196D31189EC00508B625637450C57 AT zro01exm01 DOT corp DOT mot DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <DD38D67B9196D31189EC00508B625637450C57@zro01exm01.corp.mot.com>; from Emilian.Medve@motorola.com on Wed, Nov 08, 2000 at 09:05:40PM +0200

On Wed, Nov 08, 2000 at 09:05:40PM +0200, Medve Emilian-EMMEDVE1 wrote:
>Thanx for the prompt response. I have some questions regarding your answer.
>
>How CygWin manages the size of fd table since the same program compiled with
>-mno-cygwin says that my Windows allows a process to have only 256 files
>opened at a time?

winsup/cygwin/dtable.cc contains the fd table handling code.  As far as
I know, Windows does not impose a handle limit on a process other than
system resource limits.

>You said that I used a terible method to find out the size of fd table. Do
>you know a better method? Can you tell it to me?

Well, cygwin really has no upper bounds so you'd have to choose something
arbitrary.  The normal way of doing this is to use sysconf (_SC_OPEN_MAX).
This just returns the current size of the table in cygwin, though.  The
comments in this code (winsup/cygwin/sysconf.cc) suggest that the NOFILE
or OPEN_MAX constants might be better.

You could probably just use an arbitrary number like 512, or something,
though.

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