[uClibc-cvs] uClibc/libc/sysdeps/linux/common get_kernel_syms.c, 1.1, 1.2

Erik Andersen andersen at uclibc.org
Sat May 15 08:22:01 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory nail:/tmp/cvs-serv3361

Modified Files:
	get_kernel_syms.c 
Log Message:
Cope when the __NR_get_kernel_syms is undefined (i.e. 2.6.x arm-linux)


Index: get_kernel_syms.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/get_kernel_syms.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/get_kernel_syms.c	21 Jan 2004 23:27:40 -0000	1.1
+++ b/get_kernel_syms.c	15 May 2004 08:21:58 -0000	1.2
@@ -8,5 +8,14 @@
  */
 
 #include "syscalls.h"
+
+#ifdef __NR_get_kernel_syms
 struct kernel_sym;
 _syscall1(int, get_kernel_syms, struct kernel_sym *, table);
+#else
+int get_kernel_syms(struct kernel_sym *table)
+{
+	__set_errno(ENOSYS);
+	return (unsigned long)-1;
+}
+#endif




More information about the uClibc-cvs mailing list