comparison doc/posix-functions/isatty.texi @ 40236:e3496deebf30

isatty: Make it return true in Cygwin consoles on native Windows. * lib/isatty.c: Include <string.h>. (GetProcAddress): New macro. (GetNamedPipeClientProcessIdFuncType): New type. (GetNamedPipeClientProcessIdFunc): New variable. (QueryFullProcessImageNameFuncType): New type. (QueryFullProcessImageNameFunc): New variable. (initialized): New variable. (initialize): New function. (IsCygwinConsoleHandle): New function. (isatty): Invoke it. * doc/posix-functions/isatty.texi: Mention the issue.
author Bruno Haible <bruno@clisp.org>
date Thu, 14 Mar 2019 23:54:28 +0100
parents b8576602c861
children
comparison
equal deleted inserted replaced
40235:5a52ef2d4772 40236:e3496deebf30
10 @itemize 10 @itemize
11 @item 11 @item
12 On native Windows, this function also returns true for character devices such 12 On native Windows, this function also returns true for character devices such
13 as @file{NUL}. 13 as @file{NUL}.
14 @item 14 @item
15 On native Windows, this function returns false for Cygwin consoles.
16 @item
15 This function crashes when invoked with invalid arguments on some platforms: 17 This function crashes when invoked with invalid arguments on some platforms:
16 MSVC 14. 18 MSVC 14.
17 @end itemize 19 @end itemize
18 20
19 Portability problems not fixed by Gnulib: 21 Portability problems not fixed by Gnulib: