delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/23/10:27:46

From: jazz AT softway DOT com (Jason Zions)
Subject: Re: Picking up include directories automatically
23 May 1997 10:27:46 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33847305.7DCD.cygnus.gnu-win32@softway.com>
References: <199705210042 DOT RAA21924 AT nz1 DOT netzone DOT com>
Reply-To: jazz AT softway DOT com
Mime-Version: 1.0
X-Mailer: Mozilla 3.0 (WinNT; I)
Original-To: Mikey <jeffdb AT netzone DOT com>
Original-CC: JP Shipherd <jp AT nuancecom DOT com>,
cygnus gnu-win32 mailing list <gnu-win32 AT cygnus DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Mikey wrote:
> The few programs that I've worked with that did their own path handleing
> under linux "handled" // by assuming that they were dupes, and stripping
> them out whenever they found them, begining middle or end, and since those
> programs were being compiled on a platform that "aims" for posix compliance,
> I  ASS U MEd that // isn't posix, but under gnu-win32, it dosen't work
> correctly for all programs, so DON'T USE IT.

Nope; just bad programming. // is explicitly reserve in POSIX
*precisely* to allow it to be used for things like drive letters
(//C/whatever) or hostnames (Apollo Computer's DomainOS used
//hostname/path to treat an entire network of systems like a single
giant filesystem). Conforming applications should leave a leading //
alone; 1003.1 is very clear on this. Three or more slashes can be
collapsed to a single slash.

The only question that cygwin needs to decide is if it wants to expose
the DOS drive letter forest-of-trees *at all*. Might be smartest to
simply stick with a single tree whose root is some directory on some
drive; with a solid mount model and symbolic links, you can glue the
thing together however you'd like. Personally, I would mount the root
directories of the individual DOS drives under something like /drives
and drop symbolic links elsewhere. (Perhaps I'm making a rash
assumption; does cygwin support symlinks?)

Jason


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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