delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/21/16:49:15

Date: Tue, 21 Sep 1999 15:01:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP, WATT32: __FSEXT_alloc_fd() failed
In-Reply-To: <Pine.UW2.3.95.990916231104.28103B-100000@bryggen.bgnett.no>
Message-ID: <Pine.SUN.3.91.990921150137.19568G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


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