diff options
author | Nicolas Pitre <nico@cam.org> | 2006-04-15 11:10:43 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-04-15 11:10:43 -0400 |
commit | 463b158aab247b600e4e93614b7b8f42a66331c9 (patch) | |
tree | 9e5d7b6704e82478c0129f0c94f814cf35b93a4d | |
parent | f6835543440c85f20c86c5b006e8404fe6a78109 (diff) |
[ARM] 3477/1: ARM EABI: undefine removed syscalls
Patch from Nicolas Pitre
Avoid confusion for libraries assuming that a given syscall is available
when corresponding symbol is defined.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | include/asm-arm/unistd.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index 65ac305c2d45..ee8dfea549bc 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h | |||
@@ -360,6 +360,24 @@ | |||
360 | #define __ARM_NR_usr32 (__ARM_NR_BASE+4) | 360 | #define __ARM_NR_usr32 (__ARM_NR_BASE+4) |
361 | #define __ARM_NR_set_tls (__ARM_NR_BASE+5) | 361 | #define __ARM_NR_set_tls (__ARM_NR_BASE+5) |
362 | 362 | ||
363 | /* | ||
364 | * The following syscalls are obsolete and no longer available for EABI. | ||
365 | */ | ||
366 | #if defined(__ARM_EABI__) | ||
367 | #undef __NR_time | ||
368 | #undef __NR_umount | ||
369 | #undef __NR_stime | ||
370 | #undef __NR_alarm | ||
371 | #undef __NR_utime | ||
372 | #undef __NR_getrlimit | ||
373 | #undef __NR_select | ||
374 | #undef __NR_readdir | ||
375 | #undef __NR_mmap | ||
376 | #undef __NR_socketcall | ||
377 | #undef __NR_syscall | ||
378 | #undef __NR_ipc | ||
379 | #endif | ||
380 | |||
363 | #define __sys2(x) #x | 381 | #define __sys2(x) #x |
364 | #define __sys1(x) __sys2(x) | 382 | #define __sys1(x) __sys2(x) |
365 | 383 | ||