diff options
author | Bruno Haible <bruno@clisp.org> | 2019-03-14 23:54:28 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-03-14 23:54:28 +0100 |
commit | a336be6b8c12a99506bf4fbe654108bd179704b7 (patch) | |
tree | 9584b0bc90a4dd56ac81d83a0175b5025dc5f56f /doc | |
parent | 05044004157556f2c41e35b3823688a984722d15 (diff) | |
download | gnulib-a336be6b8c12a99506bf4fbe654108bd179704b7.tar.gz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/isatty.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/posix-functions/isatty.texi b/doc/posix-functions/isatty.texi index 61c55da795..b5e196bfe0 100644 --- a/doc/posix-functions/isatty.texi +++ b/doc/posix-functions/isatty.texi @@ -12,6 +12,8 @@ Portability problems fixed by Gnulib: On native Windows, this function also returns true for character devices such as @file{NUL}. @item +On native Windows, this function returns false for Cygwin consoles. +@item This function crashes when invoked with invalid arguments on some platforms: MSVC 14. @end itemize |