Mail Archives: djgpp/2004/12/12/16:39:04
> From: <alexbodn AT 012 DOT net DOT il>
> Date: Sun, 12 Dec 2004 17:16:34 +0200
>
> i have recently run into a failure to open unc named files locate on a network, when the os is windows xp.
>
> unc file format: \\servername\directory_tree\filename.
>
> this occures with files named //servername/..., which is the default notation under djgpp (e.g., argv[0]).
>
> thus, every filename should have the path separator converted to `\\', before been submitted to open(), access(), etc.
Sorry, but you are wrong: Windows understands / and \ alike, and it
understands "//servername/" exactly as "\\servername\".
The problem is elsewhere: DJGPP simply does not support UNC-style file
names. It might work for you in some simple cases, but will
mysteriously fail in others. The reason for that is that some
file-related functions need to know the drive letter of the volume
where the file resides, and that is just too painful to compute for a
UNC-style file name (and might even not exist in some configurations).
- Raw text -