clarify the purpose of this project
[nyanglibc.git] / login / grantpt.s
blobda1c020f1c0f3df3f8c6ea7df5309c4fd00657fd
1 .text
2 .p2align 4,,15
3 .globl grantpt
4 .type grantpt, @function
5 grantpt:
6 subq $24, %rsp
7 xorl %eax, %eax
8 movl $2147767344, %esi
9 leaq 12(%rsp), %rdx
10 call __ioctl
11 testl %eax, %eax
12 je .L1
13 movq __libc_errno@gottpoff(%rip), %rdx
14 cmpl $25, %fs:(%rdx)
15 je .L8
16 .L1:
17 addq $24, %rsp
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L8:
22 movl $22, %fs:(%rdx)
23 addq $24, %rsp
24 ret
25 .size grantpt, .-grantpt
26 .hidden __ioctl