浏览代码

add support for arch_prctl() (only used on x86_64 atm)

Mike Frysinger 19 年之前
父节点
当前提交
cd7736ffa0
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      libc/sysdeps/linux/common/arch_prctl.c

+ 14 - 0
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