From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33722 invoked by alias); 12 Dec 2016 09:12:26 -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 33467 invoked by uid 89); 12 Dec 2016 09:12:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qk0-f174.google.com Received: from mail-qk0-f174.google.com (HELO mail-qk0-f174.google.com) (209.85.220.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Dec 2016 09:11:44 +0000 Received: by mail-qk0-f174.google.com with SMTP id q130so76659300qke.1 for ; Mon, 12 Dec 2016 01:11:44 -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=x3kKyMdQMfnITXqtJeYzPHvuiQuabS6vbsMPx+zE66M=; b=miPa1TStMrk1zZ6kbJAhTDJ9HUoulArJGDq7y+DPTXrUL/9uqhE2FR4XUjERTo7J8A vguTl4hiHrzaoDQ335TzPLmakI5TtREDxWSXqt9sz2dvgaOJqeU071V301VS/B1XvYN0 CYwCFkS0WYRJ3iEOjvWbbkKwTDfDtC5O77CKClTtb5a5+pAlKYQ5Q69qnoN60giv0fWd 624Ir0V7F04BwbihK0SBUWMSgh8nqwsouCeDXocYKOAvfkn7h7QME6HpFE5+wwow2kKo 7dUZwzktaYx/po+Ipz7ZnRWH8l5y73BXdmE5h1GUyrgonMP7BobKbqmklB3mkWKzXmKi 0DnA== X-Gm-Message-State: AKaTC02UbM4vMz+ckxBlTaV/xnSAy5W/dwQiZTedP7S2XJAcmEexYxRN6QDqn8pQlGDziU35189qHrKct9MAIQ== X-Received: by 10.55.207.18 with SMTP id e18mr75942635qkj.48.1481533902258; Mon, 12 Dec 2016 01:11:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.25.171 with HTTP; Mon, 12 Dec 2016 01:11:41 -0800 (PST) In-Reply-To: References: <6e5968a1-a667-f911-fbec-f83e4ef34608@redhat.com> <887116862.20161208214534@yandex.ru> From: Dipak Gaigole Date: Mon, 12 Dec 2016 09:12:00 -0000 Message-ID: Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016 To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00120.txt.bz2 > >> 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. > Yes Csaba, I had evaluated this option but we are using an older version of cygwin (1.7.33) which doesn't have this option available :( Thanks, Dipak