X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3C2B3D27.70125178@phekda.freeserve.co.uk> Date: Thu, 27 Dec 2001 15:24:23 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: lfn from scratch... References: <10112261832 DOT AA21518 AT clio DOT rice DOT edu> <3942-Wed26Dec2001220719+0200-eliz AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: > It's not clear to me how to fix this. We should either augment those > library functions which tinker with file names to know about UNCs, or > write code to map between a UNC and a drive letter. The latter is > safer, but since the mapping can be changed behind our back (the user > can run "net use" from another DOS box), we cannot cache the mapping, > and will need to compute the drive letter each time, which will slow > down file-related system calls (especially since network-related calls > are slow). Sometime ago I wrote an FSEXT that did behind-the-scenes mapping and unmapping of UNCs to drive letters. IIRC it was written against DJGPP 2.02. It would benefit with being updated to DJGPP 2.03 or DJGPP CVS, because that would help fix some of the bugs in it. It's here: http://www.phekda.freeserve.co.uk/richdawe/mysoft.html#unc_fsx Of course, it suffers from the problems Eli mentions. But perhaps the code would be a helpful starting point. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]