Mail Archives: djgpp-workers/1998/02/05/04:52:19
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 -