diff options
| author | David Pursell <dpursell@google.com> | 2015-10-28 14:29:51 -0700 |
|---|---|---|
| committer | David Pursell <dpursell@google.com> | 2015-11-02 16:44:34 -0800 |
| commit | c5b8ad88ce6e74216198f14c6e33d55cb1681370 (patch) | |
| tree | 7d8d7f501ee3ac62f75be1b8e1c38a38f1bd3c0b /base/errors_unix.cpp | |
| 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
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
