summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-23 22:46:26 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-23 22:46:26 +0000
commitcd7736ffa0dd5018fda249d95835cf17ca159094 (patch)
tree9a6c17a78ea519cff58b50f59e3821c684a430a4 /libc/sysdeps/linux/common
parentfef210554b33979748d8fdae6e35266857df460a (diff)
add support for arch_prctl() (only used on x86_64 atm)
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/arch_prctl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/arch_prctl.c b/libc/sysdeps/linux/common/arch_prctl.c
new file mode 100644
index 000000000..6569a6832
--- /dev/null
+++ b/libc/sysdeps/linux/common/arch_prctl.c
@@ -0,0 +1,14 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * arch_prctl() for uClibc
+ *
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include "syscalls.h"
+
+#ifdef __NR_arch_prctl
+_syscall2(int, arch_prctl, int, cod, unsigned long, addr);
+#endif