Date: Thu, 5 Feb 1998 11:46:56 +0200 (IST) From: Eli Zaretskii To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: FSEXT handles (fwd) In-Reply-To: <199802050215.VAA14572@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.