clarify the purpose of this project
[nyanglibc.git] / posix / streams-compat.shared.s
blob50f59fa56d5592fdea6d9e70bb8af685bc377ddc
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver fattach,fattach@GLIBC_2.2.5
7 .symver fdetach,fdetach@GLIBC_2.2.5
8 .symver getmsg,getmsg@GLIBC_2.2.5
9 .symver getpmsg,getpmsg@GLIBC_2.2.5
10 .symver isastream,isastream@GLIBC_2.2.5
11 .symver putmsg,putmsg@GLIBC_2.2.5
12 .symver putpmsg,putpmsg@GLIBC_2.2.5
13 #NO_APP
14 .section .text.compat,"ax",@progbits
15 .p2align 4,,15
16 .globl fattach
17 .type fattach, @function
18 fattach:
19 movq __libc_errno@gottpoff(%rip), %rax
20 movl $38, %fs:(%rax)
21 movl $-1, %eax
22 ret
23 .size fattach, .-fattach
24 .p2align 4,,15
25 .globl fdetach
26 .type fdetach, @function
27 fdetach:
28 movq __libc_errno@gottpoff(%rip), %rax
29 movl $38, %fs:(%rax)
30 movl $-1, %eax
31 ret
32 .size fdetach, .-fdetach
33 .p2align 4,,15
34 .globl getmsg
35 .type getmsg, @function
36 getmsg:
37 movq __libc_errno@gottpoff(%rip), %rax
38 movl $38, %fs:(%rax)
39 movl $-1, %eax
40 ret
41 .size getmsg, .-getmsg
42 .p2align 4,,15
43 .globl getpmsg
44 .type getpmsg, @function
45 getpmsg:
46 movq __libc_errno@gottpoff(%rip), %rax
47 movl $38, %fs:(%rax)
48 movl $-1, %eax
49 ret
50 .size getpmsg, .-getpmsg
51 .p2align 4,,15
52 .globl isastream
53 .type isastream, @function
54 isastream:
55 subq $8, %rsp
56 movl $1, %esi
57 xorl %eax, %eax
58 call __GI___fcntl
59 addq $8, %rsp
60 sarl $31, %eax
61 ret
62 .size isastream, .-isastream
63 .p2align 4,,15
64 .globl putmsg
65 .type putmsg, @function
66 putmsg:
67 movq __libc_errno@gottpoff(%rip), %rax
68 movl $38, %fs:(%rax)
69 movl $-1, %eax
70 ret
71 .size putmsg, .-putmsg
72 .p2align 4,,15
73 .globl putpmsg
74 .type putpmsg, @function
75 putpmsg:
76 movq __libc_errno@gottpoff(%rip), %rax
77 movl $38, %fs:(%rax)
78 movl $-1, %eax
79 ret
80 .size putpmsg, .-putpmsg