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.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rG7639ba690648: [libc] add isatty
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo