blob: d7306d0f3dfc76dd061c7dca24e83fa210b33adf [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);
Randy Dunlap39af1142006-10-16 09:01:46 -070052cond_syscall(sys_epoll_pwait);
Linus Torvalds1da177e2005-04-16 15:20:36 -070053cond_syscall(sys_semget);
54cond_syscall(sys_semop);
55cond_syscall(sys_semtimedop);
56cond_syscall(sys_semctl);
57cond_syscall(sys_msgget);
58cond_syscall(sys_msgsnd);
59cond_syscall(sys_msgrcv);
60cond_syscall(sys_msgctl);
61cond_syscall(sys_shmget);
Stephen Rothwell7d87e14c2005-05-01 08:59:12 -070062cond_syscall(sys_shmat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070063cond_syscall(sys_shmdt);
64cond_syscall(sys_shmctl);
65cond_syscall(sys_mq_open);
66cond_syscall(sys_mq_unlink);
67cond_syscall(sys_mq_timedsend);
68cond_syscall(sys_mq_timedreceive);
69cond_syscall(sys_mq_notify);
70cond_syscall(sys_mq_getsetattr);
71cond_syscall(compat_sys_mq_open);
72cond_syscall(compat_sys_mq_timedsend);
73cond_syscall(compat_sys_mq_timedreceive);
74cond_syscall(compat_sys_mq_notify);
75cond_syscall(compat_sys_mq_getsetattr);
76cond_syscall(sys_mbind);
77cond_syscall(sys_get_mempolicy);
78cond_syscall(sys_set_mempolicy);
79cond_syscall(compat_sys_mbind);
80cond_syscall(compat_sys_get_mempolicy);
81cond_syscall(compat_sys_set_mempolicy);
82cond_syscall(sys_add_key);
83cond_syscall(sys_request_key);
84cond_syscall(sys_keyctl);
85cond_syscall(compat_sys_keyctl);
86cond_syscall(compat_sys_socketcall);
Robert Love0eeca282005-07-12 17:06:03 -040087cond_syscall(sys_inotify_init);
88cond_syscall(sys_inotify_add_watch);
89cond_syscall(sys_inotify_rm_watch);
Christoph Lameter39743882006-01-08 01:00:51 -080090cond_syscall(sys_migrate_pages);
Christoph Lameter742755a2006-06-23 02:03:55 -070091cond_syscall(sys_move_pages);
Matt Mackalle585e472006-01-08 01:05:24 -080092cond_syscall(sys_chown16);
93cond_syscall(sys_fchown16);
94cond_syscall(sys_getegid16);
95cond_syscall(sys_geteuid16);
96cond_syscall(sys_getgid16);
97cond_syscall(sys_getgroups16);
98cond_syscall(sys_getresgid16);
99cond_syscall(sys_getresuid16);
100cond_syscall(sys_getuid16);
101cond_syscall(sys_lchown16);
102cond_syscall(sys_setfsgid16);
103cond_syscall(sys_setfsuid16);
104cond_syscall(sys_setgid16);
105cond_syscall(sys_setgroups16);
106cond_syscall(sys_setregid16);
107cond_syscall(sys_setresgid16);
108cond_syscall(sys_setresuid16);
109cond_syscall(sys_setreuid16);
110cond_syscall(sys_setuid16);
Matt Mackall64ca9002006-01-08 01:05:26 -0800111cond_syscall(sys_vm86old);
112cond_syscall(sys_vm86);
Stephen Rothwell7fd105e2006-02-20 18:28:08 -0800113cond_syscall(compat_sys_ipc);
114cond_syscall(compat_sys_sysctl);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115
116/* arch-specific weak syscall entries */
117cond_syscall(sys_pciconfig_read);
118cond_syscall(sys_pciconfig_write);
119cond_syscall(sys_pciconfig_iobase);
120cond_syscall(sys32_ipc);
121cond_syscall(sys32_sysctl);
122cond_syscall(ppc_rtas);
Arnd Bergmann67207b92005-11-15 15:53:48 -0500123cond_syscall(sys_spu_run);
124cond_syscall(sys_spu_create);
Hyok S. Choi3016b422006-04-10 22:53:06 -0700125
126/* mmu depending weak syscall entries */
127cond_syscall(sys_mprotect);
128cond_syscall(sys_msync);
129cond_syscall(sys_mlock);
130cond_syscall(sys_munlock);
131cond_syscall(sys_mlockall);
132cond_syscall(sys_munlockall);
133cond_syscall(sys_mincore);
134cond_syscall(sys_madvise);
135cond_syscall(sys_mremap);
136cond_syscall(sys_remap_file_pages);
Christoph Lameter1b2db9f2006-06-23 02:03:56 -0700137cond_syscall(compat_sys_move_pages);
Stephen Rothwell3fd59392006-11-02 22:07:24 -0800138cond_syscall(compat_sys_migrate_pages);
David Howells93614012006-09-30 20:45:40 +0200139
140/* block-layer dependent */
141cond_syscall(sys_bdflush);
142cond_syscall(sys_ioprio_set);
143cond_syscall(sys_ioprio_get);