Re: [Mingw-w64-public] [PATCH v7] Add include/iscygtty.c

2016-11-12 Thread Mihail Konev
On Sun, Nov 13, 2016 at 07:16:01AM +0100, Vincent Torri wrote: > i still don't understand why not using GetConsoleMode() and see if it > fails or not. > > if it fails : redirection is done with named pipes Redirection is then done, but is it a file or mintty stdin ? > if not : it's standard win32

Re: [Mingw-w64-public] [PATCH v7] Add include/iscygtty.c

2016-11-12 Thread Vincent Torri
i still don't understand why not using GetConsoleMode() and see if it fails or not. if it fails : redirection is done with named pipes if not : it's standard win32 I/O it's simple and works in my tests (DOS console, MSYS1, mintty, MSYS2 and cygwin terminal >= 1.8) Vincent Torri On Sun, Nov 13,

[Mingw-w64-public] [PATH] math.h: The type of C99 INFINITY and NAN shall be float.

2016-11-12 Thread Nakai Yuta
C99 defines INFINITY and NAN macros as float. patch is attached. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studi

[Mingw-w64-public] [PATCH v7] Add include/iscygtty.c

2016-11-12 Thread Mihail Konev
Applications now could call iscygtty(STDIN_FILENO) in order to detect whether they are running from Cygwin/MSys terminal. Without that, they have no choice but to think that stdin is redirected from a named pipe. Signed-off-by: Mihail Konev Moved-from: https://github.com/Alexpux/mingw-w64/pull/3

Re: [Mingw-w64-public] [PATCH v5] Add include/iscygtty.c

2016-11-12 Thread Ray Donnelly
MSYS2 is a software distribution with both (extremely) Cygwin-like and also native Windows software, all (usually) launched from mintty. On Nov 12, 2016 3:41 PM, "Corinna Vinschen" wrote: > On Nov 12 14:52, Ray Donnelly wrote: > > On Nov 12, 2016 1:30 PM, "Corinna Vinschen" wrote: > > > > > > O

Re: [Mingw-w64-public] [PATCH v5] Add include/iscygtty.c

2016-11-12 Thread Corinna Vinschen
On Nov 12 14:52, Ray Donnelly wrote: > On Nov 12, 2016 1:30 PM, "Corinna Vinschen" wrote: > > > > On Nov 12 12:27, JonY wrote: > > > On 11/12/2016 11:57, Mihail Konev wrote: > > > > Applications now could call iscygtty(STDIN_FILENO) > > > > in order to detect whether they are running from > > > >

Re: [Mingw-w64-public] [PATCH v5] Add include/iscygtty.c

2016-11-12 Thread Ray Donnelly
On Nov 12, 2016 1:30 PM, "Corinna Vinschen" wrote: > > On Nov 12 12:27, JonY wrote: > > On 11/12/2016 11:57, Mihail Konev wrote: > > > Applications now could call iscygtty(STDIN_FILENO) > > > in order to detect whether they are running from > > > Cygwin/MSys terminal. > > > > > > Without that, the

Re: [Mingw-w64-public] [PATCH v5] Add include/iscygtty.c

2016-11-12 Thread Corinna Vinschen
On Nov 12 12:27, JonY wrote: > On 11/12/2016 11:57, Mihail Konev wrote: > > Applications now could call iscygtty(STDIN_FILENO) > > in order to detect whether they are running from > > Cygwin/MSys terminal. > > > > Without that, they have no choice but to think that > > stdin is redirected from a n