Mail Archives: djgpp-workers/2000/05/07/05:44:20
On Sun, 7 May 2000, Martin Str|mberg wrote:
> Perhaps you misunderstand me? The idea is to use
> /dev/net/... internally to avoid this destructiveness, and map
> \\host\ to /dev/net/host on entry to the C library and then map it
> back to \\host just before calling *DOZE.
Who will map the UNCs to /dev/net? There's no single entry point to
library functions that deal with file names, so this is not really
trivial. An application can do that, but it will need to have special
code for this.
Also, it is not clear to me what is simpler: to add the support for
/dev/net or just make sure \\host\share survives all the functions that
parse file names. Feel free to suggest patches, though.
One problem that you will have to deal with is that /dev/net might be
converted to x:/dev/net where x: is a random drive letter, probably
quite different from the drive letter to which the UNC is mapped.
In any case, a small number of library functions *must* have a drive
letter, so we will need to invent something to cause those functions
to DTRT. (The reason it wasn't done until now is that, officially,
DJGPP doesn't support UNCs.)
> are you saying that WINDOZE already understands /dev/net!?
No, of course not.
- Raw text -