Hash :
39065e3b
Author :
Date :
2012-01-03T13:52:36
isatty: Support for MSVC 9. * doc/posix-functions/isatty.texi: Mention the MSVC problem. * lib/isatty.c: Include <errno.h>, msvc-inval.h. (_isatty_nothrow): New function. (isatty): Use it instead of _isatty. (IsConsoleHandle): Add comment, from Paolo Bonzini. * lib/poll.c (IsConsoleHandle): Likewise. * lib/select.c (IsConsoleHandle): Likewise. * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii. (gl_PREREQ_ISATTY): New macro. * modules/isatty (Depends-on): Add msvc-inval. (configure.ac): Invoke gl_PREREQ_ISATTY.
@node isatty
@section @code{isatty}
@findex isatty
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/isatty.html}
Gnulib module: isatty
Portability problems fixed by Gnulib:
@itemize
@item
On native Windows, this function also returns true for character devices such
as @file{NUL}.
@item
This function crashes when invoked with invalid arguments on some platforms:
MSVC 9.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize