diff options
Diffstat (limited to 'include/asm-i386/unistd.h')
-rw-r--r-- | include/asm-i386/unistd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-i386/unistd.h b/include/asm-i386/unistd.h index fc1c8ddae149..bd9987087adc 100644 --- a/include/asm-i386/unistd.h +++ b/include/asm-i386/unistd.h | |||
@@ -323,18 +323,20 @@ | |||
323 | #define __NR_tee 315 | 323 | #define __NR_tee 315 |
324 | #define __NR_vmsplice 316 | 324 | #define __NR_vmsplice 316 |
325 | #define __NR_move_pages 317 | 325 | #define __NR_move_pages 317 |
326 | #define __NR_getcpu 318 | ||
326 | 327 | ||
327 | #ifdef __KERNEL__ | 328 | #ifdef __KERNEL__ |
328 | 329 | ||
329 | #define NR_syscalls 318 | 330 | #define NR_syscalls 319 |
331 | #include <linux/err.h> | ||
330 | 332 | ||
331 | /* | 333 | /* |
332 | * user-visible error numbers are in the range -1 - -128: see | 334 | * user-visible error numbers are in the range -1 - -MAX_ERRNO: see |
333 | * <asm-i386/errno.h> | 335 | * <asm-i386/errno.h> |
334 | */ | 336 | */ |
335 | #define __syscall_return(type, res) \ | 337 | #define __syscall_return(type, res) \ |
336 | do { \ | 338 | do { \ |
337 | if ((unsigned long)(res) >= (unsigned long)(-(128 + 1))) { \ | 339 | if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \ |
338 | errno = -(res); \ | 340 | errno = -(res); \ |
339 | res = -1; \ | 341 | res = -1; \ |
340 | } \ | 342 | } \ |