OSDN Git Service

add support for arch_prctl() (only used on x86_64 atm)
authorMike Frysinger <vapier@gentoo.org>
Mon, 23 Jan 2006 22:46:26 +0000 (22:46 -0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Jan 2006 22:46:26 +0000 (22:46 -0000)
libc/sysdeps/linux/common/arch_prctl.c [new file with mode: 0644]

diff --git a/libc/sysdeps/linux/common/arch_prctl.c b/libc/sysdeps/linux/common/arch_prctl.c
new file mode 100644 (file)
index 0000000..6569a68
--- /dev/null
@@ -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