diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-12-08 21:05:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-12-08 21:05:37 +0000 |
commit | ffd98ffec71ec6c7b7e7a96f5e6dce40077b3785 (patch) | |
tree | 8a4e7657ff8a625f06dc77ba07320ae66adc48ad /include/sys | |
parent | 3da17f3cd0e0dd6818b42074fc6565a830e3b7be (diff) |
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.
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/syscall.h | 18 |
1 files changed, 13 insertions, 5 deletions
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 <features.h> -#include <bits/syscalls.h> +#include <bits/sysnum.h> +#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc) +# include <bits/syscalls.h> +#endif #endif |