summaryrefslogtreecommitdiff
path: root/ldso/ldso/x86_64/dl-syscalls.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-06 05:33:37 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-06 05:33:37 +0000
commit000311a8ddfa7c46aed9a07a2d3cdab5f7b14412 (patch)
tree0d598b24fc73904d35dce870286537eaafa16abc /ldso/ldso/x86_64/dl-syscalls.h
parent1e857d0ce2a1a487cb3288e8037ebcbfb11184db (diff)
import start of ldso based on glibc
Diffstat (limited to 'ldso/ldso/x86_64/dl-syscalls.h')
-rw-r--r--ldso/ldso/x86_64/dl-syscalls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ldso/ldso/x86_64/dl-syscalls.h b/ldso/ldso/x86_64/dl-syscalls.h
new file mode 100644
index 000000000..dc0cc6164
--- /dev/null
+++ b/ldso/ldso/x86_64/dl-syscalls.h
@@ -0,0 +1,5 @@
+/* We can't use the real errno in ldso, since it has not yet
+ * been dynamicly linked in yet. */
+extern int _dl_errno;
+#define __set_errno(X) {(_dl_errno) = (X);}
+#include "sys/syscall.h"