Use the kernel's MAX_ERRNO in the syscall stubs.
Bug: http://code.google.com/p/android/issues/detail?id=53104 Change-Id: Iaabf7025b153e96dc5eca231a33a32d4cb7d8116
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/* autogenerated by gensyscalls.py */
|
||||
#include <linux/err.h>
|
||||
#include <machine/asm.h>
|
||||
#include <sys/linux-syscalls.h>
|
||||
|
||||
@@ -11,7 +12,7 @@ ENTRY(__timer_create)
|
||||
mov 24(%esp), %edx
|
||||
movl $__NR_timer_create, %eax
|
||||
int $0x80
|
||||
cmpl $-129, %eax
|
||||
cmpl $-MAX_ERRNO, %eax
|
||||
jb 1f
|
||||
negl %eax
|
||||
pushl %eax
|
||||
|
||||
Reference in New Issue
Block a user