clarify the purpose of this project
[nyanglibc.git] / login / grantpt.shared.s
blobae9e91634606aba1a51c8f7040ef8ce011222226
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 grantpt
9 .type grantpt, @function
10 grantpt:
11 subq $24, %rsp
12 xorl %eax, %eax
13 movl $2147767344, %esi
14 leaq 12(%rsp), %rdx
15 call __GI___ioctl
16 testl %eax, %eax
17 je .L1
18 movq __libc_errno@gottpoff(%rip), %rdx
19 cmpl $25, %fs:(%rdx)
20 je .L8
21 .L1:
22 addq $24, %rsp
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L8:
27 movl $22, %fs:(%rdx)
28 addq $24, %rsp
29 ret
30 .size grantpt, .-grantpt