ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / um / include / sysdep-i386 / syscalls.h
1 /* 
2  * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3  * Licensed under the GPL
4  */
5
6 #include "asm/unistd.h"
7 #include "sysdep/ptrace.h"
8
9 typedef long syscall_handler_t(struct pt_regs);
10
11 #define EXECUTE_SYSCALL(syscall, regs) \
12         ((long (*)(struct syscall_args)) (*sys_call_table[syscall]))(SYSCALL_ARGS(&regs->regs))
13
14 extern syscall_handler_t sys_modify_ldt;
15 extern syscall_handler_t old_mmap_i386;
16 extern syscall_handler_t old_select;
17 extern syscall_handler_t sys_ni_syscall;
18
19 #define ARCH_SYSCALLS \
20         [ __NR_mmap ] = old_mmap_i386, \
21         [ __NR_select ] = old_select, \
22         [ __NR_vm86old ] = sys_ni_syscall, \
23         [ __NR_modify_ldt ] = sys_modify_ldt, \
24         [ __NR_lchown32 ] = sys_lchown, \
25         [ __NR_getuid32 ] = sys_getuid, \
26         [ __NR_getgid32 ] = sys_getgid, \
27         [ __NR_geteuid32 ] = sys_geteuid, \
28         [ __NR_getegid32 ] = sys_getegid, \
29         [ __NR_setreuid32 ] = sys_setreuid, \
30         [ __NR_setregid32 ] = sys_setregid, \
31         [ __NR_getgroups32 ] = sys_getgroups, \
32         [ __NR_setgroups32 ] = sys_setgroups, \
33         [ __NR_fchown32 ] = sys_fchown, \
34         [ __NR_setresuid32 ] = sys_setresuid, \
35         [ __NR_getresuid32 ] = sys_getresuid, \
36         [ __NR_setresgid32 ] = sys_setresgid, \
37         [ __NR_getresgid32 ] = sys_getresgid, \
38         [ __NR_chown32 ] = sys_chown, \
39         [ __NR_setuid32 ] = sys_setuid, \
40         [ __NR_setgid32 ] = sys_setgid, \
41         [ __NR_setfsuid32 ] = sys_setfsuid, \
42         [ __NR_setfsgid32 ] = sys_setfsgid, \
43         [ __NR_pivot_root ] = sys_pivot_root, \
44         [ __NR_mincore ] = sys_mincore, \
45         [ __NR_madvise ] = sys_madvise, \
46         [ 222 ] = sys_ni_syscall, 
47         
48 /* 222 doesn't yet have a name in include/asm-i386/unistd.h */
49
50 #define LAST_ARCH_SYSCALL 222
51
52 /*
53  * Overrides for Emacs so that we follow Linus's tabbing style.
54  * Emacs will notice this stuff at the end of the file and automatically
55  * adjust the settings for this buffer only.  This must remain at the end
56  * of the file.
57  * ---------------------------------------------------------------------------
58  * Local variables:
59  * c-file-style: "linux"
60  * End:
61  */