commit | c5b8ad88ce6e74216198f14c6e33d55cb1681370 | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Wed Oct 28 14:29:51 2015 -0700 |
committer | David Pursell <dpursell@google.com> | Mon Nov 02 16:44:34 2015 -0800 |
tree | 7d8d7f501ee3ac62f75be1b8e1c38a38f1bd3c0b | |
parent | 36d7af4cf635816ecbcb9bd300f4c9d60cb012d4 [diff] |
adb: create unix_isatty() function. Our Windows code has several different ways it checks whether an FD is a console or not, some of which aren't exactly correct as they may treat character devices (e.g. NUL) as consoles. This CL disallows using the builtin isatty() function and provides unix_isatty() instead which correctly checks these corner cases. Change-Id: I6d551c745dae691c7eb3446b585265d62c1e62fa