summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-03-21 07:18:47 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-03-21 07:18:47 +0000
commitd00df20f3ab2dfe40e7c551582b100ea307e8fff (patch)
treecfe96808c6b87e6e9efbe628076814840e2c8ec3 /libc/sysdeps/linux
parent2c3ece881d4d8719862a02a5484ef11c53f2f851 (diff)
Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/remap_file_pages.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/remap_file_pages.c b/libc/sysdeps/linux/common/remap_file_pages.c
new file mode 100644
index 000000000..f94067167
--- /dev/null
+++ b/libc/sysdeps/linux/common/remap_file_pages.c
@@ -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