2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
6 #include <linux/file.h>
9 #include <linux/sched.h>
10 #include <linux/utsname.h>
11 #include <linux/syscalls.h>
12 #include <asm/current.h>
14 #include <linux/uaccess.h>
15 #include <asm/unistd.h>
17 long old_mmap(unsigned long addr
, unsigned long len
,
18 unsigned long prot
, unsigned long flags
,
19 unsigned long fd
, unsigned long offset
)
22 if (offset
& ~PAGE_MASK
)
25 err
= sys_mmap_pgoff(addr
, len
, prot
, flags
, fd
, offset
>> PAGE_SHIFT
);