blob: 5433195040f195ea8ec71f83fd34c775346c1c68 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001
2#include <linux/linkage.h>
3#include <linux/errno.h>
4
5#include <asm/unistd.h>
6
7/*
8 * Non-implemented system calls get redirected here.
9 */
10asmlinkage long sys_ni_syscall(void)
11{
12 return -ENOSYS;
13}
14
15cond_syscall(sys_nfsservctl);
16cond_syscall(sys_quotactl);
17cond_syscall(sys_acct);
18cond_syscall(sys_lookup_dcookie);
19cond_syscall(sys_swapon);
20cond_syscall(sys_swapoff);
Eric W. Biedermandc009d92005-06-25 14:57:52 -070021cond_syscall(sys_kexec_load);
22cond_syscall(compat_sys_kexec_load);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023cond_syscall(sys_init_module);
24cond_syscall(sys_delete_module);
25cond_syscall(sys_socketpair);
26cond_syscall(sys_bind);
27cond_syscall(sys_listen);
28cond_syscall(sys_accept);
29cond_syscall(sys_connect);
30cond_syscall(sys_getsockname);
31cond_syscall(sys_getpeername);
32cond_syscall(sys_sendto);
33cond_syscall(sys_send);
34cond_syscall(sys_recvfrom);
35cond_syscall(sys_recv);
36cond_syscall(sys_socket);
37cond_syscall(sys_setsockopt);
38cond_syscall(sys_getsockopt);
39cond_syscall(sys_shutdown);
40cond_syscall(sys_sendmsg);
41cond_syscall(sys_recvmsg);
42cond_syscall(sys_socketcall);
43cond_syscall(sys_futex);
44cond_syscall(compat_sys_futex);
Ingo Molnar0771dfe2006-03-27 01:16:22 -080045cond_syscall(sys_set_robust_list);
46cond_syscall(compat_sys_set_robust_list);
47cond_syscall(sys_get_robust_list);
48cond_syscall(compat_sys_get_robust_list);
Linus Torvalds1da177e2005-04-16 15:20:36 -070049cond_syscall(sys_epoll_create);
50cond_syscall(sys_epoll_ctl);
51cond_syscall(sys_epoll_wait);
52cond_syscall(sys_semget);
53cond_syscall(sys_semop);
54cond_syscall(sys_semtimedop);
55cond_syscall(sys_semctl);
56cond_syscall(sys_msgget);
57cond_syscall(sys_msgsnd);
58cond_syscall(sys_msgrcv);
59cond_syscall(sys_msgctl);
60cond_syscall(sys_shmget);
Stephen Rothwell7d87e14c2005-05-01 08:59:12 -070061cond_syscall(sys_shmat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070062cond_syscall(sys_shmdt);
63cond_syscall(sys_shmctl);
64cond_syscall(sys_mq_open);
65cond_syscall(sys_mq_unlink);
66cond_syscall(sys_mq_timedsend);
67cond_syscall(sys_mq_timedreceive);
68cond_syscall(sys_mq_notify);
69cond_syscall(sys_mq_getsetattr);
70cond_syscall(compat_sys_mq_open);
71cond_syscall(compat_sys_mq_timedsend);
72cond_syscall(compat_sys_mq_timedreceive);
73cond_syscall(compat_sys_mq_notify);
74cond_syscall(compat_sys_mq_getsetattr);
75cond_syscall(sys_mbind);
76cond_syscall(sys_get_mempolicy);
77cond_syscall(sys_set_mempolicy);
78cond_syscall(compat_sys_mbind);
79cond_syscall(compat_sys_get_mempolicy);
80cond_syscall(compat_sys_set_mempolicy);
81cond_syscall(sys_add_key);
82cond_syscall(sys_request_key);
83cond_syscall(sys_keyctl);
84cond_syscall(compat_sys_keyctl);
85cond_syscall(compat_sys_socketcall);
Robert Love0eeca282005-07-12 17:06:03 -040086cond_syscall(sys_inotify_init);
87cond_syscall(sys_inotify_add_watch);
88cond_syscall(sys_inotify_rm_watch);
Christoph Lameter39743882006-01-08 01:00:51 -080089cond_syscall(sys_migrate_pages);
Matt Mackalle585e472006-01-08 01:05:24 -080090cond_syscall(sys_chown16);
91cond_syscall(sys_fchown16);
92cond_syscall(sys_getegid16);
93cond_syscall(sys_geteuid16);
94cond_syscall(sys_getgid16);
95cond_syscall(sys_getgroups16);
96cond_syscall(sys_getresgid16);
97cond_syscall(sys_getresuid16);
98cond_syscall(sys_getuid16);
99cond_syscall(sys_lchown16);
100cond_syscall(sys_setfsgid16);
101cond_syscall(sys_setfsuid16);
102cond_syscall(sys_setgid16);
103cond_syscall(sys_setgroups16);
104cond_syscall(sys_setregid16);
105cond_syscall(sys_setresgid16);
106cond_syscall(sys_setresuid16);
107cond_syscall(sys_setreuid16);
108cond_syscall(sys_setuid16);
Matt Mackall64ca9002006-01-08 01:05:26 -0800109cond_syscall(sys_vm86old);
110cond_syscall(sys_vm86);
Stephen Rothwell7fd105e2006-02-20 18:28:08 -0800111cond_syscall(compat_sys_ipc);
112cond_syscall(compat_sys_sysctl);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113
114/* arch-specific weak syscall entries */
115cond_syscall(sys_pciconfig_read);
116cond_syscall(sys_pciconfig_write);
117cond_syscall(sys_pciconfig_iobase);
118cond_syscall(sys32_ipc);
119cond_syscall(sys32_sysctl);
120cond_syscall(ppc_rtas);
Arnd Bergmann67207b92005-11-15 15:53:48 -0500121cond_syscall(sys_spu_run);
122cond_syscall(sys_spu_create);
Hyok S. Choi3016b422006-04-10 22:53:06 -0700123
124/* mmu depending weak syscall entries */
125cond_syscall(sys_mprotect);
126cond_syscall(sys_msync);
127cond_syscall(sys_mlock);
128cond_syscall(sys_munlock);
129cond_syscall(sys_mlockall);
130cond_syscall(sys_munlockall);
131cond_syscall(sys_mincore);
132cond_syscall(sys_madvise);
133cond_syscall(sys_mremap);
134cond_syscall(sys_remap_file_pages);