Ver código fonte

Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>

Carmelo Amoroso 17 anos atrás
pai
commit
d00df20f3a
1 arquivos alterados com 16 adições e 0 exclusões
  1. 16 0
      libc/sysdeps/linux/common/remap_file_pages.c

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