commit | 9aceab50155b17741faded1fb22e2daa51a07fb1 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Mar 12 14:57:30 2013 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Mar 12 17:43:58 2013 -0700 |
tree | d1a976cb41c6aa807c6b07f0e858f92ea5763b4f | |
parent | 94a34010c1f989032c0a4dc7a7a68d069ca23b1e [diff] [blame] |
Use the kernel's MAX_ERRNO in the syscall stubs. Bug: http://code.google.com/p/android/issues/detail?id=53104 Change-Id: Iaabf7025b153e96dc5eca231a33a32d4cb7d8116
diff --git a/libc/kernel/common/linux/err.h b/libc/kernel/common/linux/err.h index 442a1d8..ae0cf3c 100644 --- a/libc/kernel/common/linux/err.h +++ b/libc/kernel/common/linux/err.h
@@ -22,5 +22,8 @@ #include <asm/errno.h> /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define MAX_ERRNO 4095 +#ifndef __ASSEMBLY__ #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif