blob: 08d6e1bb99ac351f28bfe768acf49c17e04b0593 [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
Adrian Bunk0732a552007-10-16 23:29:25 -07007/* we can't #include <linux/syscalls.h> here,
8 but tell gcc to not warn with -Wmissing-prototypes */
9asmlinkage long sys_ni_syscall(void);
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011/*
12 * Non-implemented system calls get redirected here.
13 */
14asmlinkage long sys_ni_syscall(void)
15{
16 return -ENOSYS;
17}
18
19cond_syscall(sys_nfsservctl);
20cond_syscall(sys_quotactl);
Vasily Tarasovb7163952007-07-15 23:41:12 -070021cond_syscall(sys32_quotactl);
Linus Torvalds1da177e2005-04-16 15:20:36 -070022cond_syscall(sys_acct);
23cond_syscall(sys_lookup_dcookie);
24cond_syscall(sys_swapon);
25cond_syscall(sys_swapoff);
Eric W. Biedermandc009d92005-06-25 14:57:52 -070026cond_syscall(sys_kexec_load);
27cond_syscall(compat_sys_kexec_load);
Linus Torvalds1da177e2005-04-16 15:20:36 -070028cond_syscall(sys_init_module);
29cond_syscall(sys_delete_module);
30cond_syscall(sys_socketpair);
31cond_syscall(sys_bind);
32cond_syscall(sys_listen);
33cond_syscall(sys_accept);
Ulrich Drepperaaca0bd2008-07-23 21:29:20 -070034cond_syscall(sys_paccept);
Linus Torvalds1da177e2005-04-16 15:20:36 -070035cond_syscall(sys_connect);
36cond_syscall(sys_getsockname);
37cond_syscall(sys_getpeername);
38cond_syscall(sys_sendto);
39cond_syscall(sys_send);
40cond_syscall(sys_recvfrom);
41cond_syscall(sys_recv);
42cond_syscall(sys_socket);
43cond_syscall(sys_setsockopt);
David S. Millerf3baa482007-10-29 00:54:39 -070044cond_syscall(compat_sys_setsockopt);
Linus Torvalds1da177e2005-04-16 15:20:36 -070045cond_syscall(sys_getsockopt);
David S. Millerf3baa482007-10-29 00:54:39 -070046cond_syscall(compat_sys_getsockopt);
Linus Torvalds1da177e2005-04-16 15:20:36 -070047cond_syscall(sys_shutdown);
48cond_syscall(sys_sendmsg);
David S. Millerf3baa482007-10-29 00:54:39 -070049cond_syscall(compat_sys_sendmsg);
Linus Torvalds1da177e2005-04-16 15:20:36 -070050cond_syscall(sys_recvmsg);
David S. Millerf3baa482007-10-29 00:54:39 -070051cond_syscall(compat_sys_recvmsg);
Linus Torvalds1da177e2005-04-16 15:20:36 -070052cond_syscall(sys_socketcall);
53cond_syscall(sys_futex);
54cond_syscall(compat_sys_futex);
Ingo Molnar0771dfe2006-03-27 01:16:22 -080055cond_syscall(sys_set_robust_list);
56cond_syscall(compat_sys_set_robust_list);
57cond_syscall(sys_get_robust_list);
58cond_syscall(compat_sys_get_robust_list);
Linus Torvalds1da177e2005-04-16 15:20:36 -070059cond_syscall(sys_epoll_create);
Wang Chen5df439e2008-07-25 01:45:23 -070060cond_syscall(sys_epoll_create1);
Linus Torvalds1da177e2005-04-16 15:20:36 -070061cond_syscall(sys_epoll_ctl);
62cond_syscall(sys_epoll_wait);
Randy Dunlap39af1142006-10-16 09:01:46 -070063cond_syscall(sys_epoll_pwait);
Atsushi Nemoto5f171562008-07-21 14:21:37 -070064cond_syscall(compat_sys_epoll_pwait);
Linus Torvalds1da177e2005-04-16 15:20:36 -070065cond_syscall(sys_semget);
66cond_syscall(sys_semop);
67cond_syscall(sys_semtimedop);
68cond_syscall(sys_semctl);
69cond_syscall(sys_msgget);
70cond_syscall(sys_msgsnd);
71cond_syscall(sys_msgrcv);
72cond_syscall(sys_msgctl);
73cond_syscall(sys_shmget);
Stephen Rothwell7d87e14c2005-05-01 08:59:12 -070074cond_syscall(sys_shmat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070075cond_syscall(sys_shmdt);
76cond_syscall(sys_shmctl);
77cond_syscall(sys_mq_open);
78cond_syscall(sys_mq_unlink);
79cond_syscall(sys_mq_timedsend);
80cond_syscall(sys_mq_timedreceive);
81cond_syscall(sys_mq_notify);
82cond_syscall(sys_mq_getsetattr);
83cond_syscall(compat_sys_mq_open);
84cond_syscall(compat_sys_mq_timedsend);
85cond_syscall(compat_sys_mq_timedreceive);
86cond_syscall(compat_sys_mq_notify);
87cond_syscall(compat_sys_mq_getsetattr);
88cond_syscall(sys_mbind);
89cond_syscall(sys_get_mempolicy);
90cond_syscall(sys_set_mempolicy);
91cond_syscall(compat_sys_mbind);
92cond_syscall(compat_sys_get_mempolicy);
93cond_syscall(compat_sys_set_mempolicy);
94cond_syscall(sys_add_key);
95cond_syscall(sys_request_key);
96cond_syscall(sys_keyctl);
97cond_syscall(compat_sys_keyctl);
98cond_syscall(compat_sys_socketcall);
Robert Love0eeca282005-07-12 17:06:03 -040099cond_syscall(sys_inotify_init);
Ulrich Drepper40065532008-07-23 21:29:32 -0700100cond_syscall(sys_inotify_init1);
Robert Love0eeca282005-07-12 17:06:03 -0400101cond_syscall(sys_inotify_add_watch);
102cond_syscall(sys_inotify_rm_watch);
Christoph Lameter39743882006-01-08 01:00:51 -0800103cond_syscall(sys_migrate_pages);
Christoph Lameter742755a2006-06-23 02:03:55 -0700104cond_syscall(sys_move_pages);
Matt Mackalle585e472006-01-08 01:05:24 -0800105cond_syscall(sys_chown16);
106cond_syscall(sys_fchown16);
107cond_syscall(sys_getegid16);
108cond_syscall(sys_geteuid16);
109cond_syscall(sys_getgid16);
110cond_syscall(sys_getgroups16);
111cond_syscall(sys_getresgid16);
112cond_syscall(sys_getresuid16);
113cond_syscall(sys_getuid16);
114cond_syscall(sys_lchown16);
115cond_syscall(sys_setfsgid16);
116cond_syscall(sys_setfsuid16);
117cond_syscall(sys_setgid16);
118cond_syscall(sys_setgroups16);
119cond_syscall(sys_setregid16);
120cond_syscall(sys_setresgid16);
121cond_syscall(sys_setresuid16);
122cond_syscall(sys_setreuid16);
123cond_syscall(sys_setuid16);
Matt Mackall64ca9002006-01-08 01:05:26 -0800124cond_syscall(sys_vm86old);
125cond_syscall(sys_vm86);
Stephen Rothwell7fd105e2006-02-20 18:28:08 -0800126cond_syscall(compat_sys_ipc);
127cond_syscall(compat_sys_sysctl);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128
129/* arch-specific weak syscall entries */
130cond_syscall(sys_pciconfig_read);
131cond_syscall(sys_pciconfig_write);
132cond_syscall(sys_pciconfig_iobase);
133cond_syscall(sys32_ipc);
134cond_syscall(sys32_sysctl);
135cond_syscall(ppc_rtas);
Arnd Bergmann67207b92005-11-15 15:53:48 -0500136cond_syscall(sys_spu_run);
137cond_syscall(sys_spu_create);
Paul Mackerrasfa282372008-01-24 08:35:13 +1100138cond_syscall(sys_subpage_prot);
Hyok S. Choi3016b422006-04-10 22:53:06 -0700139
140/* mmu depending weak syscall entries */
141cond_syscall(sys_mprotect);
142cond_syscall(sys_msync);
143cond_syscall(sys_mlock);
144cond_syscall(sys_munlock);
145cond_syscall(sys_mlockall);
146cond_syscall(sys_munlockall);
147cond_syscall(sys_mincore);
148cond_syscall(sys_madvise);
149cond_syscall(sys_mremap);
150cond_syscall(sys_remap_file_pages);
Christoph Lameter1b2db9f2006-06-23 02:03:56 -0700151cond_syscall(compat_sys_move_pages);
Stephen Rothwell3fd59392006-11-02 22:07:24 -0800152cond_syscall(compat_sys_migrate_pages);
David Howells93614012006-09-30 20:45:40 +0200153
154/* block-layer dependent */
155cond_syscall(sys_bdflush);
156cond_syscall(sys_ioprio_set);
157cond_syscall(sys_ioprio_get);
Davide Libenzifba2afa2007-05-10 22:23:13 -0700158
159/* New file descriptors */
160cond_syscall(sys_signalfd);
Ulrich Drepper9deb27b2008-07-23 21:29:24 -0700161cond_syscall(sys_signalfd4);
Heiko Carstens8df767d2007-05-12 10:37:02 -0700162cond_syscall(compat_sys_signalfd);
Ingo Molnar9b813612008-07-25 13:02:37 +0200163cond_syscall(compat_sys_signalfd4);
Davide Libenzi4d672e72008-02-04 22:27:26 -0800164cond_syscall(sys_timerfd_create);
165cond_syscall(sys_timerfd_settime);
166cond_syscall(sys_timerfd_gettime);
167cond_syscall(compat_sys_timerfd_settime);
168cond_syscall(compat_sys_timerfd_gettime);
Davide Libenzie1ad7462007-05-10 22:23:19 -0700169cond_syscall(sys_eventfd);
Ulrich Drepperb087498e2008-07-23 21:29:25 -0700170cond_syscall(sys_eventfd2);