clarify the purpose of this project
[nyanglibc.git] / posix / sched_setaffinity.shared.s
blob6977b283fabd7219016107716bd5459484624dc7
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __sched_setaffinity_new,sched_setaffinity@@GLIBC_2.3.4
7 .symver __sched_setaffinity_old,sched_setaffinity@GLIBC_2.3.3
8 #NO_APP
9 .p2align 4,,15
10 .globl __GI___sched_setaffinity_new
11 .hidden __GI___sched_setaffinity_new
12 .type __GI___sched_setaffinity_new, @function
13 __GI___sched_setaffinity_new:
14 movl $203, %eax
15 #APP
16 # 33 "../sysdeps/unix/sysv/linux/sched_setaffinity.c" 1
17 syscall
19 # 0 "" 2
20 #NO_APP
21 cmpq $-4096, %rax
22 ja .L5
23 rep ret
24 .p2align 4,,10
25 .p2align 3
26 .L5:
27 movq __libc_errno@gottpoff(%rip), %rdx
28 negl %eax
29 movl %eax, %fs:(%rdx)
30 movl $-1, %eax
31 ret
32 .size __GI___sched_setaffinity_new, .-__GI___sched_setaffinity_new
33 .globl __sched_setaffinity_new
34 .set __sched_setaffinity_new,__GI___sched_setaffinity_new
35 .section .text.compat,"ax",@progbits
36 .p2align 4,,15
37 .globl __sched_setaffinity_old
38 .type __sched_setaffinity_old, @function
39 __sched_setaffinity_old:
40 movq %rsi, %rdx
41 movl $203, %eax
42 movl $128, %esi
43 #APP
44 # 33 "../sysdeps/unix/sysv/linux/sched_setaffinity.c" 1
45 syscall
47 # 0 "" 2
48 #NO_APP
49 cmpq $-4096, %rax
50 ja .L9
51 rep ret
52 .p2align 4,,10
53 .p2align 3
54 .L9:
55 movq __libc_errno@gottpoff(%rip), %rdx
56 negl %eax
57 movl %eax, %fs:(%rdx)
58 movl $-1, %eax
59 ret
60 .size __sched_setaffinity_old, .-__sched_setaffinity_old