unc_fsx is Copyright 1998, 1999 by Richard Dawe.
unc_fsx is distributed under the terms of the GNU Library General Public License (GNU LGPL). Please read license.txt before using unc_fsx.
[Introduction] [How To Use It] [Download] [Todo] [Credits]
unc_fsx is a library that allows DJGPP programs to handle UNC-style filenames transparently. UNC is Universal Naming Convention, a not-particularly universal naming convention that is used on Windows (SMB) networks. The convention is as follows for disk shares:
e.g. \\myhost\myshare\mydir\mydir2\myfile.txt could be a text file on your computer.
When using unc_fsx, any file open operations will be intercepted via an FSEXT or File-System Extension. The FSEXT checks the filename to see if it fits the UNC disk share format. If so, it checks to see if the share is mapped. If not, then it maps it to a drive letter (starting with Z:, in reverse alphabetical order). The FSEXT then modifies the filename to use the mapped drive letter, so that all the file functions work.
Note: The filename modification is direct, so if you wish to display the UNC name then you should perform all file operations with a copy of the filename. This is a bit of a hack, but I hope to fix this sometime.
This document was written by Richard Dawe. His home page can be found at http://www.bigfoot.com/~richdawe/ and his e-mail address is firstname.lastname@example.org.