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