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 <asm/uaccess.h>
15 #include <asm/unistd.h>
19 return do_fork(SIGCHLD, UPT_SP(¤t->thread.regs.regs),
20 ¤t->thread.regs, 0, NULL, NULL);
25 return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD,
26 UPT_SP(¤t->thread.regs.regs),
27 ¤t->thread.regs, 0, NULL, NULL);
30 long sys_clone(unsigned long clone_flags, unsigned long newsp,
31 void __user *parent_tid, void __user *child_tid)
34 newsp = UPT_SP(¤t->thread.regs.regs);
36 return do_fork(clone_flags, newsp, ¤t->thread.regs, 0, parent_tid,
40 long old_mmap(unsigned long addr, unsigned long len,
41 unsigned long prot, unsigned long flags,
42 unsigned long fd, unsigned long offset)
45 if (offset & ~PAGE_MASK)
48 err = sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);