From d00df20f3ab2dfe40e7c551582b100ea307e8fff Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Fri, 21 Mar 2008 07:18:47 +0000 Subject: Add rempa_file_pages function by Will Newton --- libc/sysdeps/linux/common/remap_file_pages.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libc/sysdeps/linux/common/remap_file_pages.c (limited to 'libc/sysdeps/linux/common/remap_file_pages.c') 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 + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include + +#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 -- cgit v1.2.3