blob: 17313b99e53d2539789ddcf2dae5e30c45be0780 [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);
45cond_syscall(sys_epoll_create);
46cond_syscall(sys_epoll_ctl);
47cond_syscall(sys_epoll_wait);
48cond_syscall(sys_semget);
49cond_syscall(sys_semop);
50cond_syscall(sys_semtimedop);
51cond_syscall(sys_semctl);
52cond_syscall(sys_msgget);
53cond_syscall(sys_msgsnd);
54cond_syscall(sys_msgrcv);
55cond_syscall(sys_msgctl);
56cond_syscall(sys_shmget);
Stephen Rothwell7d87e14c2005-05-01 08:59:12 -070057cond_syscall(sys_shmat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070058cond_syscall(sys_shmdt);
59cond_syscall(sys_shmctl);
60cond_syscall(sys_mq_open);
61cond_syscall(sys_mq_unlink);
62cond_syscall(sys_mq_timedsend);
63cond_syscall(sys_mq_timedreceive);
64cond_syscall(sys_mq_notify);
65cond_syscall(sys_mq_getsetattr);
66cond_syscall(compat_sys_mq_open);
67cond_syscall(compat_sys_mq_timedsend);
68cond_syscall(compat_sys_mq_timedreceive);
69cond_syscall(compat_sys_mq_notify);
70cond_syscall(compat_sys_mq_getsetattr);
71cond_syscall(sys_mbind);
72cond_syscall(sys_get_mempolicy);
73cond_syscall(sys_set_mempolicy);
74cond_syscall(compat_sys_mbind);
75cond_syscall(compat_sys_get_mempolicy);
76cond_syscall(compat_sys_set_mempolicy);
77cond_syscall(sys_add_key);
78cond_syscall(sys_request_key);
79cond_syscall(sys_keyctl);
80cond_syscall(compat_sys_keyctl);
81cond_syscall(compat_sys_socketcall);
Robert Love0eeca282005-07-12 17:06:03 -040082cond_syscall(sys_inotify_init);
83cond_syscall(sys_inotify_add_watch);
84cond_syscall(sys_inotify_rm_watch);
Christoph Lameter39743882006-01-08 01:00:51 -080085cond_syscall(sys_migrate_pages);
Matt Mackalle585e472006-01-08 01:05:24 -080086cond_syscall(sys_chown16);
87cond_syscall(sys_fchown16);
88cond_syscall(sys_getegid16);
89cond_syscall(sys_geteuid16);
90cond_syscall(sys_getgid16);
91cond_syscall(sys_getgroups16);
92cond_syscall(sys_getresgid16);
93cond_syscall(sys_getresuid16);
94cond_syscall(sys_getuid16);
95cond_syscall(sys_lchown16);
96cond_syscall(sys_setfsgid16);
97cond_syscall(sys_setfsuid16);
98cond_syscall(sys_setgid16);
99cond_syscall(sys_setgroups16);
100cond_syscall(sys_setregid16);
101cond_syscall(sys_setresgid16);
102cond_syscall(sys_setresuid16);
103cond_syscall(sys_setreuid16);
104cond_syscall(sys_setuid16);
Matt Mackall64ca9002006-01-08 01:05:26 -0800105cond_syscall(sys_vm86old);
106cond_syscall(sys_vm86);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107
108/* arch-specific weak syscall entries */
109cond_syscall(sys_pciconfig_read);
110cond_syscall(sys_pciconfig_write);
111cond_syscall(sys_pciconfig_iobase);
112cond_syscall(sys32_ipc);
113cond_syscall(sys32_sysctl);
114cond_syscall(ppc_rtas);
Arnd Bergmann67207b92005-11-15 15:53:48 -0500115cond_syscall(sys_spu_run);
116cond_syscall(sys_spu_create);