Re: Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-12 Thread Dipak Gaigole
> >> 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/cygwi

Re: Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-08 Thread Dipak Gaigole
> > So in this situation, is it possible to get the cwd value as > "/cygdrive/c/temp/appdir/bin" using some cygwin API? > >>> > >>> No, it is generally not possible to get the POSIX path to anything in > >>> the cygwin root (/) tree to be prefixed by the /cygdrive prefix. The > >>> /

Re: Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-08 Thread Dipak Gaigole
>>> >>> So in this situation, is it possible to get the cwd value as >>> "/cygdrive/c/temp/appdir/bin" using some cygwin API? >> >> No, it is generally not possible to get the POSIX path to anything in >> the cygwin root (/) tree to be prefixed by the /cygdrive prefix. The >> /cygdrive prefix exist

Re: Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-07 Thread Dipak Gaigole
>> >> So in this situation, is it possible to get the cwd value as >> "/cygdrive/c/temp/appdir/bin" using some cygwin API? > > No, it is generally not possible to get the POSIX path to anything in > the cygwin root (/) tree to be prefixed by the /cygdrive prefix. The > /cygdrive prefix exists solel

Re: Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-07 Thread Dipak Gaigole
>> I am facing a very strange problem with chdir and GetCurrentDirectory. > > Not strange at all. The two are incompatible. When writing Cygwin > programs, stick to the POSIX-y interface, NOT the windows interface. > >> After calling chdir (), the call to GetCurrentDirectory () returns > > chdir(

Re: Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-07 Thread Dipak Gaigole
gdrive/c/Program Files) reuturned <0> GetCurrentDirectory returned , ret = <16> getcwd returned , ret = Administrator@W-WIN7-56 /cygdrive/c/temp $ On Thu, Dec 8, 2016 at 1:53 AM, Dipak Gaigole wrote: > Hello, > > I am facing a very strange problem with chdir and GetCu

Problem with chdir and GetCurrentDirectory on Windows 2016

2016-12-07 Thread Dipak Gaigole
Hello, I am facing a very strange problem with chdir and GetCurrentDirectory. After calling chdir (), the call to GetCurrentDirectory () returns wrong value. I tested this on Windows 7 and Windows 2016. It is working fine on Windows 7 whereas wrong values are returned on Windows 2016. I guess we s

libtermcap.a in cygwin 1.7.7.1

2010-10-01 Thread Dipak Gaigole
Hello, Recently I had uninstalled my previous version of cygwin (1.5.24) and did a fresh install of latest cygwin (1.7.7.1) When I tried to recompile my code it failed because of libtermcap.a not found. This termcap library is needed by my code. Further investigation shows that this library is m