commit | 588053606552a5290ef63a7c586601019b4c4ed4 | [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 | 5045251681c210f60153568b82105e9a37816d3a | |
parent | 5806e73691a1dd09764e568ea96027e31c7784a8 [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