summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/sched_setparam.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-12 14:57:30 -0700
committerElliott Hughes <enh@google.com>2013-03-12 17:43:58 -0700
commit9aceab50155b17741faded1fb22e2daa51a07fb1 (patch)
treed1a976cb41c6aa807c6b07f0e858f92ea5763b4f /libc/arch-x86/syscalls/sched_setparam.S
parent94a34010c1f989032c0a4dc7a7a68d069ca23b1e (diff)
downloadbionic-9aceab50155b17741faded1fb22e2daa51a07fb1.zip
bionic-9aceab50155b17741faded1fb22e2daa51a07fb1.tar.gz
bionic-9aceab50155b17741faded1fb22e2daa51a07fb1.tar.bz2
Use the kernel's MAX_ERRNO in the syscall stubs.
Bug: http://code.google.com/p/android/issues/detail?id=53104 Change-Id: Iaabf7025b153e96dc5eca231a33a32d4cb7d8116
Diffstat (limited to 'libc/arch-x86/syscalls/sched_setparam.S')
-rw-r--r--libc/arch-x86/syscalls/sched_setparam.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/arch-x86/syscalls/sched_setparam.S b/libc/arch-x86/syscalls/sched_setparam.S
index a250783..4327d04 100644
--- a/libc/arch-x86/syscalls/sched_setparam.S
+++ b/libc/arch-x86/syscalls/sched_setparam.S
@@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@@ -9,7 +10,7 @@ ENTRY(sched_setparam)
mov 16(%esp), %ecx
movl $__NR_sched_setparam, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax