This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problem with chdir and GetCurrentDirectory on Windows 2016
- From: Csaba Raduly <rcsaba at gmail dot com>
- To: cygwin list <cygwin at cygwin dot com>
- Date: Fri, 9 Dec 2016 09:42:02 +0100
- Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016
- Authentication-results: sourceware.org; auth=none
- References: <CADs2-=TCsi-vpQxa+Nhwgc6GHo734qpGh+DOYcuYo36C5r4t0g@mail.gmail.com> <a26c3edd-8221-12e3-9bc5-c03c7b13bca1@redhat.com> <CADs2-=QW6AeU9a8_7c557WBfB2VgY6aNQ19E+YK-fd_jnKBMfw@mail.gmail.com> <6e5968a1-a667-f911-fbec-f83e4ef34608@redhat.com> <CADs2-=TeVMnQ5sdVGJnSw0ouNh_dj3cBf1PP6fN-62smsBeDpA@mail.gmail.com> <CADs2-=Sh5cR-LTmxTsVR=jkcGJ0AxhU=ssg436CCJ5DT9WSnSA@mail.gmail.com> <887116862.20161208214534@yandex.ru> <CADs2-=R_NxbDNom1MDyyBYgtCfifQ3V-D4jy2wNkHb7fUv0Org@mail.gmail.com> <CADs2-=TS1x0cLjngCGMxHSEUpy5Wjkv7Xt_H8Sg5OP99nWLgFg@mail.gmail.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