Mail Archives: djgpp/1996/08/11/04:09:35
Hi all,
in networking, it is quite usual to access ressources
with their NetBIOS names. For example
\\brain1/usr/home/demmer/plan
This naming convention is what Windows understands and what
DOS returns if I say
map root i:=usr:home # Netware specific
truename i:\demmer\plan
Now, DJGPP does not support this naming conventions. This
is somewhat annoying, because for a lot of programs it
is possible to set an environment variable which tells them
where to find config files in a neat way without having to
fiddle around with mapping drives and surely breaking some-
thing. I just say something like
SET AXUM=\\brain1/usr/home/demmer/axum/axumpath.dft
(actually I say SET AXUMPATH=%~%/axum/axumpath.dft)
and it works fine.
I have hacked _fixpath() to recognize these names. From the
few routines that use it I just checked acccess(), opendir()
open() it works fine. What will for sure break is splitpath()
and alikes.
Is there any interest in generally incorporating this into
libc, or is this just my personal pleasure?
Or is even somebody thinking about the same?
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* Voice/Fax Box: +49 2561 91371 2056 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -