delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/12/10:26:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 12 Feb 2003 16:25:59 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: some probelms about in porting from Linux to windows
Message-ID: <20030212152559.GR28314@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <OF496353FE DOT EDB1D36B-ON48256CCB DOT 00432E3E AT legend DOT com DOT cn>
Mime-Version: 1.0
In-Reply-To: <OF496353FE.EDB1D36B-ON48256CCB.00432E3E@legend.com.cn>
User-Agent: Mutt/1.4i

On Wed, Feb 12, 2003 at 08:31:05PM +0800, fengrui AT Legend DOT com wrote:
> 
> Hi all:
> 
>     I'm porting some programs from linux to windows using cygwin. Cygwin is
> really a great software, which reduce a great deal of my work.
> 
>     I have occured some problems. In my program, I use some config files,
> whose path like "/etc/**.d/**.conf". Of course I can use windows path
> pattern like "c:\\cygwin\etc\**.d\**.conf". But I wonder if there has some
> methods which can set root path ("/") of my program, so I can still use the
> linux path pattern like "/etc/**.d/**.conf" only with cygwin1.dll in
> release evrionment, which is to say,  in a compute whose OS is windows
> without installing cygwin, just copied to cygwin1.dll.

I don't understand your problem.  Cygwin provides you with the necessary
conversions between POSIX and WIN32 paths so all you have to do is...
nothing in terms of paths.  Just use the POSIX paths as the application
expects and *especially* ...

>    Who can give me some advice? Can it do work if I set the registry table
> :
> 
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/

...DON'T MESS AROUND WITH THE REGISTRY.  The registry is used internally
in Cygwin and even though it might take some time from now on, it *will*
go away at some point in the future.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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