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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: References: <6e5968a1-a667-f911-fbec-f83e4ef34608 AT redhat DOT com> <887116862 DOT 20161208214534 AT yandex DOT ru> From: Csaba Raduly Date: Fri, 9 Dec 2016 09:42:02 +0100 Message-ID: Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016 To: cygwin list Content-Type: text/plain; charset=UTF-8 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