delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/23/05:50:49

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: UNC with djgpp?
Date: Thu, 23 Dec 1999 11:29:51 +0200
Organization: NetVision Israel
Lines: 25
Message-ID: <Pine.SUN.3.91.991223112933.5945C-100000@is>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991222101233 DOT 25221Q-100000 AT is> <f6884.12$36 DOT 1990 AT carnaval DOT risq DOT qc DOT ca>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 945941287 26471 199.203.121.2 (23 Dec 1999 09:28:07 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 23 Dec 1999 09:28:07 GMT
X-Sender: eliz AT is
In-Reply-To: <f6884.12$36.1990@carnaval.risq.qc.ca>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 22 Dec 1999, Alain Magloire wrote:

> This is true on the Unix side,  in QNX, which has a distributed model,
> node could be access like this, for example getting a file on node161
> 
> 	less //161/etc/passwd
> 
> It turned out to be a pain, since many Unix utilities will smash
> the '//' to '/'.

This (and similar) problems are *exactly* at the core of the reason
for non-support of UNCs in DJGPP.  If you have a program that doesn't
take file names apart, but simply passes the UNCs unaltered to the DOS
calls, then most of the DOS calls, at least on Windows, would not
mind.

The problem is that some functions and most GNU programs *do* take
file names apart, and a small portion of DOS functions fail for UNCs
(and the failures vary depending on the installed network client ;-).
Imagine a situation where `stat' works, but `access' does not--it can
be very confusing and cause subtle bugs.

Getting all this straight is a royal pain, some of which I tried to
describe earlier in this thread.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019