delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/09/03:42:36

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=JiYEMfW
h3yv8RBAC7NJXdP1ZzcefjnxRVrtvjnpTGF3By1llCwZguwzqtR3SZj6A8vRvPPJ
0ev39+QRIhcOjUlx8rUVO38TVcaEt82ypqjFxxgquT1thkRih3VZbq6EbP+HYTe1
LcqTPuttAajO0oUDqzq5jR8PViNcr7R2H56g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=Js4qfbVzcxB8a
alanYYyz8irQ/w=; b=NpPbp+OzChbqpx4ynUvp51+jcWQD9O3+kJqY7tO8oFiX5
NqfsAIIybGTw8Q87UogmCtbknX4DKokEdll6KKDZhaVXZm3Oled2nv0Kx4lHr+Gl
iUyjaNObsBkjGj34hkOelS4O8n0DOPYL4+TGqvHyuo79b5GA3yeo+nSoGjlxkg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:813, Tao, tao, H*i:sk:TS1x0cL
X-HELO: mail-wj0-f170.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=q5bw/6x4sEoCisgi4webTWnTStRVKyAQR53sFGQECwA=; b=Mpj+irqECL3UiQeFFAHJAv8T1q/qQx0P7hscZ39bo9rbA79tpAvcuFGSNplKjUiCBM 1Hsa/jsUC2fhvKtc8nvU4XnXuLCvK3B5lbcevXW8sUCJLwDZJs5w7zvlqqzFLcwSZ5YN VNTtd3IePWAfWEFBCroQuuu16bLQayATAkCtBcgF188rFl9bekhqzG5T6MZ+/fCtx0XF oAKoNz3Gy/49jRPxYwbSDFryhWuud/pQNaY33GeKsoBgANvvdsk0Z1CYGxw0ncGEkgTC NxFW/IVUamJHsE+X3RO/DJAiqFTgG8er+mh5vsEcFsGiD+BAemPO3vYwpggwEUc2LUeQ 7kVw==
X-Gm-Message-State: AKaTC00jgsJ05wkN631MeUzUrxZioszBXo/7Z8xirj6SSlPqrSB1kimoUvZwAjNAZNu9Hp656r6U4wWvAQhBjA==
X-Received: by 10.194.122.101 with SMTP id lr5mr66831346wjb.210.1481272923616; Fri, 09 Dec 2016 00:42:03 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CADs2-=TS1x0cLjngCGMxHSEUpy5Wjkv7Xt_H8Sg5OP99nWLgFg@mail.gmail.com>
References: <CADs2-=TCsi-vpQxa+Nhwgc6GHo734qpGh+DOYcuYo36C5r4t0g AT mail DOT gmail DOT com> <a26c3edd-8221-12e3-9bc5-c03c7b13bca1 AT redhat DOT com> <CADs2-=QW6AeU9a8_7c557WBfB2VgY6aNQ19E+YK-fd_jnKBMfw AT mail DOT gmail DOT com> <6e5968a1-a667-f911-fbec-f83e4ef34608 AT redhat DOT com> <CADs2-=TeVMnQ5sdVGJnSw0ouNh_dj3cBf1PP6fN-62smsBeDpA AT mail DOT gmail DOT com> <CADs2-=Sh5cR-LTmxTsVR=jkcGJ0AxhU=ssg436CCJ5DT9WSnSA AT mail DOT gmail DOT com> <887116862 DOT 20161208214534 AT yandex DOT ru> <CADs2-=R_NxbDNom1MDyyBYgtCfifQ3V-D4jy2wNkHb7fUv0Org AT mail DOT gmail DOT com> <CADs2-=TS1x0cLjngCGMxHSEUpy5Wjkv7Xt_H8Sg5OP99nWLgFg AT mail DOT gmail DOT com>
From: Csaba Raduly <rcsaba AT gmail DOT com>
Date: Fri, 9 Dec 2016 09:42:02 +0100
Message-ID: <CAEhDDbBHAAmTj-nUpJgWdCqrV7EZ3RcxFW7O4dKk5wB24FR+2A@mail.gmail.com>
Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016
To: cygwin list <cygwin AT cygwin DOT com>

On Fri, Dec 9, 2016 at 8:24 AM, Dipak Gaigole  wrote:

> Agreed Andrey. But I couldn't find any API(s) which can serve my
> requirements. And we can't afford to execute (fork+exec) tools like
> cygpath for each getcwd call.
> Any suggestions on improving this approach or any alternative approach
> are always welcome.

https://cygwin.com/cygwin-api/func-cygwin-conv-path.html

Note the CCP_PROC_CYGDRIVE option.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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