[PATCH] Add remap_file_pages syscall

Carmelo Amoroso carmelo73 at gmail.com
Fri Mar 21 07:27:56 UTC 2008


Will Newton wrote:
> Hi,
> 
> The attached patch adds the remap_file_pages syscall to uClibc.
> 

Merged, thanks.

Carmelo
> 
> ------------------------------------------------------------------------
> 
> Index: libc/sysdeps/linux/common/remap_file_pages.c
> ===================================================================
> RCS file: libc/sysdeps/linux/common/remap_file_pages.c
> diff -N libc/sysdeps/linux/common/remap_file_pages.c
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ libc/sysdeps/linux/common/remap_file_pages.c	19 Mar 2008 11:25:18 -0000
> @@ -0,0 +1,16 @@
> +/*
> + * remap_file_pages() for uClibc
> + *
> + * Copyright (C) 2008 Will Newton <will.newton at 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc





More information about the uClibc mailing list