Mail Archives: djgpp-workers/1998/12/08/04:57:19
Hello.
I was wondering if anyone has thought about incorporating UNC
filename support into DJGPP 2.02.
I've managed to write a filesystem extension that uses the Lan
Manager APIs to use shares as a program needs them, and then modify the
filenames to use these shares.
For instance:
fopen("\\\\myhost\\myshare\\mydir\\myfile.txt", "rt")
would result in mapping \\myhost\myshare to e.g. Z: and then modifying
the passed filename to Z:\mydir\myfile.txt. The shares remain used until
the program finishes. If an appropriate share -> drive mapping exists,
then it is used and not deleted when the program finishes.
The only undesirable side-affect is that the filename is
actually modified by the extension. Also, I'm not too sure about how the
extension would be set up initially. I currently have it in a library,
and one has to call unc_fsext_init() to use it.
If anyone's interested in this, then I can go into more detail
or submit code. I'm going to release it soon as library for DJGPP
2.01 anyhow. Bye,
==============================================================================
Rich Dawe - 4th-year MSci Physicist @ Bristol University, UK
richdawe AT bigfoot DOT com, http://www.bigfoot.com/~richdawe/
==============================================================================
- Raw text -