>
>> 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
>
> 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
> >>> /
>>>
>>> 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
>>
>> 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
>> 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(
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
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
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
8 matches
Mail list logo