summaryrefslogtreecommitdiff
path: root/include/sys/syscall.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-12-08 19:28:27 +0000
committerEric Andersen <andersen@codepoet.org>2006-12-08 19:28:27 +0000
commit3da17f3cd0e0dd6818b42074fc6565a830e3b7be (patch)
treee2df0a6c5908d42885028d84c05d078abe0a140c /include/sys/syscall.h
parent4f5281c481d2a91dd9931d9fcb7ea2e6e728e398 (diff)
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.
Diffstat (limited to 'include/sys/syscall.h')
-rw-r--r--include/sys/syscall.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/sys/syscall.h b/include/sys/syscall.h
index aef1f998f..08d86958f 100644
--- a/include/sys/syscall.h
+++ b/include/sys/syscall.h
@@ -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