OSDN Git Service

LT.old: Make __errno_location/__h_errno_location thread safe
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / get_kernel_syms.c
index c29af55..740b8d3 100644 (file)
@@ -2,20 +2,15 @@
 /*
  * get_kernel_syms() for uClibc
  *
- * Copyright (C) 2000-2004 by Erik Andersen <andersen@codpoet.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
- * GNU Library General Public License (LGPL) version 2 or later.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include "syscalls.h"
+#include <sys/syscall.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;
-}
+int get_kernel_syms(struct kernel_sym *table);
+_syscall1(int, get_kernel_syms, struct kernel_sym *, table)
 #endif