svn commit: branches/uClibc-nptl: libc/sysdeps/linux/arm/bits libpthread/n etc...

kraj at uclibc.org kraj at uclibc.org
Mon Jul 14 07:39:04 UTC 2008


Author: kraj
Date: 2008-07-14 00:39:03 -0700 (Mon, 14 Jul 2008)
New Revision: 22825

Log:
Undefine some of redundant syscalls not used by EABI kernels. So uclibc could use alternative implementations for them.
include sys/syscalls.h in pt-gettimeofday.c


Modified:
   branches/uClibc-nptl/libc/sysdeps/linux/arm/bits/syscalls.h
   branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c


Changeset:
Modified: branches/uClibc-nptl/libc/sysdeps/linux/arm/bits/syscalls.h
===================================================================
--- branches/uClibc-nptl/libc/sysdeps/linux/arm/bits/syscalls.h	2008-07-14 06:29:38 UTC (rev 22824)
+++ branches/uClibc-nptl/libc/sysdeps/linux/arm/bits/syscalls.h	2008-07-14 07:39:03 UTC (rev 22825)
@@ -4,6 +4,24 @@
 # error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
 #endif
 
+/* EABI kernels don't implement some redundant syscalls.  Undefine them
+   here so that fallback implementations will be used.  */
+
+#if defined(__ARM_EABI__)
+#undef __NR_time
+#undef __NR_umount
+#undef __NR_stime
+#undef __NR_alarm
+#undef __NR_utime
+#undef __NR_getrlimit
+#undef __NR_select
+#undef __NR_readdir
+#undef __NR_mmap
+#undef __NR_socketcall
+#undef __NR_syscall
+#undef __NR_ipc
+#endif
+
 /*
    Some of the sneaky macros in the code were taken from 
    glibc-2.3.2/sysdeps/unix/sysv/linux/arm/sysdep.h

Modified: branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c
===================================================================
--- branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c	2008-07-14 06:29:38 UTC (rev 22824)
+++ branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c	2008-07-14 07:39:03 UTC (rev 22825)
@@ -1,6 +1,5 @@
-#include "../../../../../../../libc/sysdeps/linux/common/syscalls.h"
+#include <sys/syscall.h>
 #include <sys/time.h>
 
 int gettimeofday (struct timeval *, struct timezone *) attribute_hidden;
 _syscall2(int, gettimeofday, struct timeval *, tv, struct timezone *, tz);
-




More information about the uClibc-cvs mailing list