[ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)
Takashi Yano
takashi.yano@nifty.ne.jp
Thu Oct 24 09:51:00 GMT 2019
On Thu, 24 Oct 2019 12:47:29 +0530
Biswapriyo Nath wrote:
> While using GetFileType API upon standard console handle, GetLastError
> shows error code 187 aka. ERROR_SEM_NOT_FOUND. GetLastError shows 0
> (zero) in stable cygwin version. Here is the test code:
>
> #include <Windows.h>
> #include <stdio.h>
>
> int main(void)
> {
> SetLastError(0);
> printf("%d (%d)\n", GetFileType(GetStdHandle(STD_INPUT_HANDLE)),
> GetLastError());
> printf("%d (%d)\n", GetFileType(GetStdHandle(STD_OUTPUT_HANDLE)),
> GetLastError());
> printf("%d (%d)\n", GetFileType(GetStdHandle(STD_ERROR_HANDLE)),
> GetLastError());
> }
I cannot reproduce the problem. In my environment, the output is:
2 (0)
2 (0)
2 (0)
(1) Could you please let us know more detail about your environment,
compiler, etc?
(2) What happens if you execute cmd.exe?
--
Takashi Yano <takashi.yano@nifty.ne.jp>
--
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
More information about the Cygwin
mailing list