Date: Tue, 21 Sep 1999 15:01:54 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Gisle Vanem cc: djgpp AT delorie DOT com Subject: Re: DJGPP, WATT32: __FSEXT_alloc_fd() failed In-Reply-To: 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, Gisle Vanem wrote: > Do you use an old djgpp? OTOH, this dup-trick was introduced in v2.01. No, it was introduced in v2.02. > Maybe DOS keeps these dup-reference in a table (System File Table?) and > when this table becomes full not even NULL can be dup'ed. No, DOS implements the dup system call with reference counts, so there's no table to be filled. Each program has a handle table in its PSP which starts up with space for only 20 handles, but the DJGPP library expands it to 255 handles before the 20-handle limit is reached. See section 9.6 of the FAQ, it explains this not-so-simple issue in some detail.