Date: Tue, 21 Sep 1999 15:01:28 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Krehbiel cc: djgpp AT delorie DOT com Subject: Re: DJGPP, WATT32: __FSEXT_alloc_fd() failed In-Reply-To: <7rr51n$huh$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 16 Sep 1999, Richard Krehbiel wrote: > The problem I'm hitting now is that I'm getting the error message noted > in the subject line at the point where watt32's socket.c would be > allocating file descriptor 20. Huh? I've been unable to find the > source of this limitation. Are you using DJGPP v2.02? > socket.c calls __FSEXT_alloc_fd, which > itself just dups an open handle to the DOS NULL device, and otherwise > appears not to impose any 20-handle limit This is true for DJGPP v2.02 and later. > Well, I already had FILES=30, so I suspected this was not the problem, > but just in case, I increased it to FILES=200. There was no change. Please step with a debugger into the related functions (you will need to download their sources and compile them with -g), and post here what did you find out. I have test programs hich prove to me that FSEXT can indeed allocate up to 249 handles, which is the maximum.