www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/03/08:57:05

Date: Tue, 3 Feb 1998 11:49:03 +0100 (CET)
Message-Id: <199802031049.LAA15718@login-2.eunet.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: djgpp AT delorie DOT com
Subject: FSEXT handles
MIME-Version: 1.0

I'm having trouble understanding how djgpp handles FSEXT'ensions when
duplicate handles exists.

Lets say I create an handle X with socket() and install an extension
using __FSEXT_set_function (handle, func_parser). Note, socket() don't
use __FSEXT_add_open_handler().

At the same time I have an open DOS file with handle Y=X. How does e.g.
_read() differentiate between them ?

AFAIK see it can't. One solution might be to have 100 <= X <= 255.
That way the handle can also work with FD_SET and select().

Anyone know a better solution ?

Gisle V.
Gisle V.

- Raw text -


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