clarify the purpose of this project
[nyanglibc.git] / io / isatty.shared.s
blob49c7dbd6e121a7db714ea4aab338863cbb4409e3
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __isatty
9 .hidden __isatty
10 .type __isatty, @function
11 __isatty:
12 subq $72, %rsp
13 movq %rsp, %rsi
14 call __GI___tcgetattr
15 testl %eax, %eax
16 sete %al
17 addq $72, %rsp
18 movzbl %al, %eax
19 ret
20 .size __isatty, .-__isatty
21 .weak isatty
22 .set isatty,__isatty