xz/src
Jia Tan 584e3a258f xz: Create separate is_tty() function.
The new is_tty() will report if a file descriptor is a terminal or not.
On POSIX systems, it is a wrapper around isatty(). However, the native
Windows implementation of isatty() will return true for all character
devices, not just terminals. So is_tty() has a special case for Windows
so it can use alternative Windows API functions to determine if a file
descriptor is a terminal.

This fixes a bug with MSVC and MinGW-w64 builds that refused to read from
or write to non-terminal character devices because xz thought it was a
terminal. For instance:

    xz foo -c > /dev/null

would fail because /dev/null was assumed to be a terminal.
2023-11-23 22:40:20 +08:00
..
common tuklib_integer: Fix typo discovered by codespell. 2023-11-22 20:39:41 +08:00
liblzma liblzma: Add missing comments to lz_encoder.h. 2023-11-09 01:21:53 +08:00
lzmainfo xz, xzdec, lzmainfo: Use tuklib_attr_noreturn. 2023-09-22 20:06:27 +03:00
scripts Scripts: Change quoting style from `...' to '...'. 2023-09-24 22:10:41 +08:00
xz xz: Create separate is_tty() function. 2023-11-23 22:40:20 +08:00
xzdec xz, xzdec, lzmainfo: Use tuklib_attr_noreturn. 2023-09-22 20:06:27 +03:00
Makefile.am Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00