mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 18:18:09 +08:00
The isatty function uses the side effects of an ioctl call to determine if a specific file descriptor is a terminal. I chose TIOCGETD (get line discipline of terminal) because it didn't require any new structs. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D135618