summaryrefslogtreecommitdiffstats
path: root/include/sys/syscall.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-01-21 02:24:07 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-01-21 02:24:07 +0000
commitabfc5558bf4beb7dc381d93baaec4a9a3e4eba7b (patch)
tree8763531b221e50bbbafb457cc1688e9ab4175516 /include/sys/syscall.h
parent293cef1de02c36f58a48bcdbe2d385059ea04828 (diff)
downloaduClibc-alpine-abfc5558bf4beb7dc381d93baaec4a9a3e4eba7b.tar.bz2
uClibc-alpine-abfc5558bf4beb7dc381d93baaec4a9a3e4eba7b.tar.xz
More merging from trunk.
Diffstat (limited to 'include/sys/syscall.h')
-rw-r--r--include/sys/syscall.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/sys/syscall.h b/include/sys/syscall.h
index aef1f998f..4c8ede843 100644
--- a/include/sys/syscall.h
+++ b/include/sys/syscall.h
@@ -19,13 +19,19 @@
#ifndef _SYSCALL_H
#define _SYSCALL_H 1
-/* This file provides us with the nicely useful _syscall[0-5] macros. */
+/* 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/sysnum.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
#endif