svn commit: trunk/uClibc/include/sys

andersen at uclibc.org andersen at uclibc.org
Fri Dec 8 19:28:28 UTC 2006


Author: andersen
Date: 2006-12-08 11:28:27 -0800 (Fri, 08 Dec 2006)
New Revision: 16820

Log:
Sorry psm but contrary to commit 12927, kernel provided syscalls
are NOT suitable for user-space.  The libc ones are the ones that
application code must use.  If a problem is found with the libc
ones, then the libc syscall macros should be fixed.


Modified:
   trunk/uClibc/include/sys/syscall.h


Changeset:
Modified: trunk/uClibc/include/sys/syscall.h
===================================================================
--- trunk/uClibc/include/sys/syscall.h	2006-12-08 19:21:11 UTC (rev 16819)
+++ trunk/uClibc/include/sys/syscall.h	2006-12-08 19:28:27 UTC (rev 16820)
@@ -19,13 +19,11 @@
 #ifndef _SYSCALL_H
 #define _SYSCALL_H	1
 
-/* This file provides us with the nicely useful _syscall[0-5] macros. */
+/* This file provides us with the useful _syscall[0-6] macros.  The kernel
+ * provided syscall macros from asm/unistd.h are not suitable for user-space,
+ * lacking PIC support etc, so we use our own libc versions to be certain all
+ * such variations are handled properly. */
 #include <features.h>
-#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
-# include <bits/syscalls.h>
-#else
-# include <asm/unistd.h>
-# include <bits/sysnum.h>
-#endif
+#include <bits/syscalls.h>
 
 #endif




More information about the uClibc-cvs mailing list