소스 검색

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

Mike Frysinger 20 년 전
부모
커밋
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