clarify the purpose of this project
[nyanglibc.git] / io / isatty.s
blob6a4b507cb69733467bb494a926642d6c6067180b
1 .text
2 .p2align 4,,15
3 .globl __isatty
4 .hidden __isatty
5 .type __isatty, @function
6 __isatty:
7 subq $72, %rsp
8 movq %rsp, %rsi
9 call __tcgetattr
10 testl %eax, %eax
11 sete %al
12 addq $72, %rsp
13 movzbl %al, %eax
14 ret
15 .size __isatty, .-__isatty
16 .weak isatty
17 .set isatty,__isatty
18 .hidden __tcgetattr