From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1269 invoked by alias); 9 Dec 2016 08:42:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1178 invoked by uid 89); 9 Dec 2016 08:42:16 -0000 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 Received: from mail-wj0-f170.google.com (HELO mail-wj0-f170.google.com) (209.85.210.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Dec 2016 08:42:05 +0000 Received: by mail-wj0-f170.google.com with SMTP id v7so8694602wjy.2 for ; Fri, 09 Dec 2016 00:42:05 -0800 (PST) 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 Received: by 10.194.72.228 with HTTP; Fri, 9 Dec 2016 00:42:02 -0800 (PST) In-Reply-To: References: <6e5968a1-a667-f911-fbec-f83e4ef34608@redhat.com> <887116862.20161208214534@yandex.ru> From: Csaba Raduly Date: Fri, 09 Dec 2016 08:42:00 -0000 Message-ID: Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016 To: cygwin list Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-12/txt/msg00099.txt.bz2 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