From ffd98ffec71ec6c7b7e7a96f5e6dce40077b3785 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 8 Dec 2006 21:05:37 +0000 Subject: Take Mike Frysinger's comments into account -- make certain that user applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file. --- include/sys/syscall.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'include/sys/syscall.h') diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 08d86958f..4c8ede843 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -19,11 +19,19 @@ #ifndef _SYSCALL_H #define _SYSCALL_H 1 -/* 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. */ +/* The _syscall#() macros are for uClibc internal use only. + * User application code should use syscall() instead. + * + * The kernel provided _syscall[0-6] macros from asm/unistd.h are not suitable + * for use in uClibc as they lack PIC support etc, so for uClibc we use our own + * local _syscall# macros to be certain all such variations are handled + * properly. + */ + #include -#include +#include +#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc) +# include +#endif #endif -- cgit v1.2.3