17 #include <linux/kernel.h>
18 #include <linux/sched.h>
22 #include <linux/signal.h>
23 #include <linux/resource.h>
26 #include <linux/sem.h>
27 #include <linux/msg.h>
28 #include <linux/shm.h>
29 #include <linux/poll.h>
30 #include <linux/personality.h>
31 #include <linux/stat.h>
32 #include <linux/mman.h>
36 #include <linux/sysctl.h>
37 #include <linux/binfmts.h>
40 #include <linux/ptrace.h>
41 #include <linux/elf.h>
42 #include <linux/ipc.h>
43 #include <linux/slab.h>
45 #include <asm/ptrace.h>
46 #include <asm/types.h>
47 #include <asm/uaccess.h>
48 #include <asm/unistd.h>
50 #include <asm/mmu_context.h>
52 #include <asm/syscalls.h>
53 #include <asm/switch_to.h>
71 return sys_sysfs((
int)option, arg1, arg2);
89 compat_ptr(ptr), second,
99 return sys_semget((
int)first, (
int)second, third);
112 third, version, compat_ptr(ptr));
149 return compat_sys_sendfile((
int)out_fd, (
int)in_fd, offset, count);
167 (
unsigned long) arg2,
168 (
unsigned long) arg3,
169 (
unsigned long) arg4,
170 (
unsigned long) arg5);
222 return sys_waitpid((
int)pid, stat_addr, (
int)options);
267 return sys_kill((
int)pid, (
int)sig);
290 return sys_lseek(fd, (
int)offset, origin);
472 unsigned long prot,
unsigned long flags,
473 unsigned long fd,
unsigned long pgoff)
476 return sys_mmap(addr, len, prot, flags, fd, pgoff << 12);
493 return sys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo);
499 return sys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo);
504 return sys_readahead(fd, ((loff_t)offhi << 32) | offlo, count);
508 unsigned long high,
unsigned long low)
516 return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
517 ((loff_t)lenhi << 32) | lenlo);
534 size_t len,
int advice)
541 const char __user *_description,
542 const void __user *_payload,
546 return sys_add_key(_type, _description, _payload, plen, ringid);
550 const char __user *_description,
551 const char __user *_callout_info,
554 return sys_request_key(_type, _description, _callout_info, destringid);
558 unsigned offset_hi,
unsigned offset_lo,
559 unsigned nbytes_hi,
unsigned nbytes_lo)
561 loff_t
offset = ((loff_t)offset_hi << 32) | offset_lo;
562 loff_t
nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo;
568 unsigned mask_hi,
unsigned mask_lo,
569 int dfd,
const char __user *
pathname)