OSDN Git Service

Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 21 Mar 2008 07:18:47 +0000 (07:18 -0000)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 21 Mar 2008 07:18:47 +0000 (07:18 -0000)
libc/sysdeps/linux/common/remap_file_pages.c [new file with mode: 0644]

diff --git a/libc/sysdeps/linux/common/remap_file_pages.c b/libc/sysdeps/linux/common/remap_file_pages.c
new file mode 100644 (file)
index 0000000..f940671
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * remap_file_pages() for uClibc
+ *
+ * Copyright (C) 2008 Will Newton <will.newton@imgtec.com>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+
+#ifdef __NR_remap_file_pages
+
+_syscall5(int, remap_file_pages, unsigned long, start, unsigned long, size,
+         unsigned long, prot, unsigned long, pgoff, unsigned long, flags);
+
+#endif