This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)
- From: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Oct 2019 18:51:21 +0900
- Subject: Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)
- Dkim-filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x9O9pIcr005090
- References: <CALK-3mLCyNo7Eqx9zqrU2EBg0YV8miFTgQVhVQnDDjLpUjdUgg@mail.gmail.com>
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