clarify the purpose of this project
[nyanglibc.git] / posix / sched_setaffinity.s
blob37ee42581b45f62b7fb1a0890533d44242600352
1 .text
2 .p2align 4,,15
3 .globl __sched_setaffinity_new
4 .hidden __sched_setaffinity_new
5 .type __sched_setaffinity_new, @function
6 __sched_setaffinity_new:
7 movl $203, %eax
8 #APP
9 # 33 "../sysdeps/unix/sysv/linux/sched_setaffinity.c" 1
10 syscall
12 # 0 "" 2
13 #NO_APP
14 cmpq $-4096, %rax
15 ja .L5
16 rep ret
17 .p2align 4,,10
18 .p2align 3
19 .L5:
20 movq __libc_errno@gottpoff(%rip), %rdx
21 negl %eax
22 movl %eax, %fs:(%rdx)
23 movl $-1, %eax
24 ret
25 .size __sched_setaffinity_new, .-__sched_setaffinity_new
26 .weak sched_setaffinity
27 .set sched_setaffinity,__sched_setaffinity_new