commit | 15c32af66a05008f981a4eba12354c907b3c783a | [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 | ab8930274ed28a012f26df9582c96a0e27e7f719 [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