delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/02/05/04:52:19

Date: Thu, 5 Feb 1998 11:46:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: Re: FSEXT handles (fwd)
In-Reply-To: <199802050215.VAA14572@delorie.com>
Message-ID: <Pine.SUN.3.91.980205114631.28596B-100000@is>
MIME-Version: 1.0

On Wed, 4 Feb 1998, DJ Delorie wrote:

> Will dup() return values above 255?

No, DOS handles can never go beyond 254 (255 is 0xff, which marks an
unused handle in the PSP handle table).

Just to clarify, I didn't mean to call `dup' from libc (which can be
caught by an FSEXT handler), I meant to open the NUL device the first
time `__FSEXT_alloc_fd' is called, and afterwards call the DOS
function 45h which dups the handle returned by the initial open call.

- Raw text -


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