blob: 47bfa16430d7dc764c17a06f4c40dd142ef6a88a [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
Linus Torvalds1da177e2005-04-16 15:20:36 -070019cond_syscall(sys_quotactl);
Vasily Tarasovb7163952007-07-15 23:41:12 -070020cond_syscall(sys32_quotactl);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021cond_syscall(sys_acct);
22cond_syscall(sys_lookup_dcookie);
23cond_syscall(sys_swapon);
24cond_syscall(sys_swapoff);
Eric W. Biedermandc009d92005-06-25 14:57:52 -070025cond_syscall(sys_kexec_load);
26cond_syscall(compat_sys_kexec_load);
Linus Torvalds1da177e2005-04-16 15:20:36 -070027cond_syscall(sys_init_module);
28cond_syscall(sys_delete_module);
29cond_syscall(sys_socketpair);
30cond_syscall(sys_bind);
31cond_syscall(sys_listen);
32cond_syscall(sys_accept);
Ulrich Drepperde11def2008-11-19 15:36:14 -080033cond_syscall(sys_accept4);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034cond_syscall(sys_connect);
35cond_syscall(sys_getsockname);
36cond_syscall(sys_getpeername);
37cond_syscall(sys_sendto);
38cond_syscall(sys_send);
39cond_syscall(sys_recvfrom);
40cond_syscall(sys_recv);
41cond_syscall(sys_socket);
42cond_syscall(sys_setsockopt);
David S. Millerf3baa482007-10-29 00:54:39 -070043cond_syscall(compat_sys_setsockopt);
Linus Torvalds1da177e2005-04-16 15:20:36 -070044cond_syscall(sys_getsockopt);
David S. Millerf3baa482007-10-29 00:54:39 -070045cond_syscall(compat_sys_getsockopt);
Linus Torvalds1da177e2005-04-16 15:20:36 -070046cond_syscall(sys_shutdown);
47cond_syscall(sys_sendmsg);
Anton Blanchard228e5482011-05-02 20:21:35 +000048cond_syscall(sys_sendmmsg);
David S. Millerf3baa482007-10-29 00:54:39 -070049cond_syscall(compat_sys_sendmsg);
Anton Blanchard228e5482011-05-02 20:21:35 +000050cond_syscall(compat_sys_sendmmsg);
Linus Torvalds1da177e2005-04-16 15:20:36 -070051cond_syscall(sys_recvmsg);
Arnaldo Carvalho de Meloa2e27252009-10-12 23:40:10 -070052cond_syscall(sys_recvmmsg);
David S. Millerf3baa482007-10-29 00:54:39 -070053cond_syscall(compat_sys_recvmsg);
Stephen Rothwell1ef21192010-09-03 13:19:04 +100054cond_syscall(compat_sys_recv);
Andrew Mortondedcf292009-09-18 09:52:13 +000055cond_syscall(compat_sys_recvfrom);
Arnaldo Carvalho de Meloa2e27252009-10-12 23:40:10 -070056cond_syscall(compat_sys_recvmmsg);
Linus Torvalds1da177e2005-04-16 15:20:36 -070057cond_syscall(sys_socketcall);
58cond_syscall(sys_futex);
59cond_syscall(compat_sys_futex);
Ingo Molnar0771dfe2006-03-27 01:16:22 -080060cond_syscall(sys_set_robust_list);
61cond_syscall(compat_sys_set_robust_list);
62cond_syscall(sys_get_robust_list);
63cond_syscall(compat_sys_get_robust_list);
Linus Torvalds1da177e2005-04-16 15:20:36 -070064cond_syscall(sys_epoll_create);
Wang Chen5df439e2008-07-25 01:45:23 -070065cond_syscall(sys_epoll_create1);
Linus Torvalds1da177e2005-04-16 15:20:36 -070066cond_syscall(sys_epoll_ctl);
67cond_syscall(sys_epoll_wait);
Randy Dunlap39af1142006-10-16 09:01:46 -070068cond_syscall(sys_epoll_pwait);
Atsushi Nemoto5f171562008-07-21 14:21:37 -070069cond_syscall(compat_sys_epoll_pwait);
Linus Torvalds1da177e2005-04-16 15:20:36 -070070cond_syscall(sys_semget);
71cond_syscall(sys_semop);
72cond_syscall(sys_semtimedop);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070073cond_syscall(compat_sys_semtimedop);
Linus Torvalds1da177e2005-04-16 15:20:36 -070074cond_syscall(sys_semctl);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070075cond_syscall(compat_sys_semctl);
Linus Torvalds1da177e2005-04-16 15:20:36 -070076cond_syscall(sys_msgget);
77cond_syscall(sys_msgsnd);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070078cond_syscall(compat_sys_msgsnd);
Linus Torvalds1da177e2005-04-16 15:20:36 -070079cond_syscall(sys_msgrcv);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070080cond_syscall(compat_sys_msgrcv);
Linus Torvalds1da177e2005-04-16 15:20:36 -070081cond_syscall(sys_msgctl);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070082cond_syscall(compat_sys_msgctl);
Linus Torvalds1da177e2005-04-16 15:20:36 -070083cond_syscall(sys_shmget);
Stephen Rothwell7d87e14c2005-05-01 08:59:12 -070084cond_syscall(sys_shmat);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070085cond_syscall(compat_sys_shmat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070086cond_syscall(sys_shmdt);
87cond_syscall(sys_shmctl);
Kevin Cernekeebe84bfc2011-05-17 10:39:58 -070088cond_syscall(compat_sys_shmctl);
Linus Torvalds1da177e2005-04-16 15:20:36 -070089cond_syscall(sys_mq_open);
90cond_syscall(sys_mq_unlink);
91cond_syscall(sys_mq_timedsend);
92cond_syscall(sys_mq_timedreceive);
93cond_syscall(sys_mq_notify);
94cond_syscall(sys_mq_getsetattr);
95cond_syscall(compat_sys_mq_open);
96cond_syscall(compat_sys_mq_timedsend);
97cond_syscall(compat_sys_mq_timedreceive);
98cond_syscall(compat_sys_mq_notify);
99cond_syscall(compat_sys_mq_getsetattr);
100cond_syscall(sys_mbind);
101cond_syscall(sys_get_mempolicy);
102cond_syscall(sys_set_mempolicy);
103cond_syscall(compat_sys_mbind);
104cond_syscall(compat_sys_get_mempolicy);
105cond_syscall(compat_sys_set_mempolicy);
106cond_syscall(sys_add_key);
107cond_syscall(sys_request_key);
108cond_syscall(sys_keyctl);
109cond_syscall(compat_sys_keyctl);
110cond_syscall(compat_sys_socketcall);
Robert Love0eeca282005-07-12 17:06:03 -0400111cond_syscall(sys_inotify_init);
Ulrich Drepper40065532008-07-23 21:29:32 -0700112cond_syscall(sys_inotify_init1);
Robert Love0eeca282005-07-12 17:06:03 -0400113cond_syscall(sys_inotify_add_watch);
114cond_syscall(sys_inotify_rm_watch);
Christoph Lameter39743882006-01-08 01:00:51 -0800115cond_syscall(sys_migrate_pages);
Christoph Lameter742755a2006-06-23 02:03:55 -0700116cond_syscall(sys_move_pages);
Matt Mackalle585e472006-01-08 01:05:24 -0800117cond_syscall(sys_chown16);
118cond_syscall(sys_fchown16);
119cond_syscall(sys_getegid16);
120cond_syscall(sys_geteuid16);
121cond_syscall(sys_getgid16);
122cond_syscall(sys_getgroups16);
123cond_syscall(sys_getresgid16);
124cond_syscall(sys_getresuid16);
125cond_syscall(sys_getuid16);
126cond_syscall(sys_lchown16);
127cond_syscall(sys_setfsgid16);
128cond_syscall(sys_setfsuid16);
129cond_syscall(sys_setgid16);
130cond_syscall(sys_setgroups16);
131cond_syscall(sys_setregid16);
132cond_syscall(sys_setresgid16);
133cond_syscall(sys_setresuid16);
134cond_syscall(sys_setreuid16);
135cond_syscall(sys_setuid16);
Matt Mackall64ca9002006-01-08 01:05:26 -0800136cond_syscall(sys_vm86old);
137cond_syscall(sys_vm86);
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -0800138cond_syscall(sys_ipc);
Stephen Rothwell7fd105e2006-02-20 18:28:08 -0800139cond_syscall(compat_sys_ipc);
140cond_syscall(compat_sys_sysctl);
Thomas Petazzonibfcd17a2008-08-06 15:12:22 +0200141cond_syscall(sys_flock);
Thomas Petazzoniebf3f092008-10-15 22:05:12 -0700142cond_syscall(sys_io_setup);
143cond_syscall(sys_io_destroy);
144cond_syscall(sys_io_submit);
145cond_syscall(sys_io_cancel);
146cond_syscall(sys_io_getevents);
Heiko Carstensf627a742009-01-14 14:13:58 +0100147cond_syscall(sys_syslog);
Christopher Yeohfcf63402011-10-31 17:06:39 -0700148cond_syscall(sys_process_vm_readv);
149cond_syscall(sys_process_vm_writev);
150cond_syscall(compat_sys_process_vm_readv);
151cond_syscall(compat_sys_process_vm_writev);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152
153/* arch-specific weak syscall entries */
154cond_syscall(sys_pciconfig_read);
155cond_syscall(sys_pciconfig_write);
156cond_syscall(sys_pciconfig_iobase);
157cond_syscall(sys32_ipc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158cond_syscall(ppc_rtas);
Arnd Bergmann67207b92005-11-15 15:53:48 -0500159cond_syscall(sys_spu_run);
160cond_syscall(sys_spu_create);
Paul Mackerrasfa282372008-01-24 08:35:13 +1100161cond_syscall(sys_subpage_prot);
Hyok S. Choi3016b422006-04-10 22:53:06 -0700162
163/* mmu depending weak syscall entries */
164cond_syscall(sys_mprotect);
165cond_syscall(sys_msync);
166cond_syscall(sys_mlock);
167cond_syscall(sys_munlock);
168cond_syscall(sys_mlockall);
169cond_syscall(sys_munlockall);
170cond_syscall(sys_mincore);
171cond_syscall(sys_madvise);
172cond_syscall(sys_mremap);
173cond_syscall(sys_remap_file_pages);
Christoph Lameter1b2db9f2006-06-23 02:03:56 -0700174cond_syscall(compat_sys_move_pages);
Stephen Rothwell3fd59392006-11-02 22:07:24 -0800175cond_syscall(compat_sys_migrate_pages);
David Howells93614012006-09-30 20:45:40 +0200176
177/* block-layer dependent */
178cond_syscall(sys_bdflush);
179cond_syscall(sys_ioprio_set);
180cond_syscall(sys_ioprio_get);
Davide Libenzifba2afa2007-05-10 22:23:13 -0700181
182/* New file descriptors */
183cond_syscall(sys_signalfd);
Ulrich Drepper9deb27b2008-07-23 21:29:24 -0700184cond_syscall(sys_signalfd4);
Heiko Carstens8df767d2007-05-12 10:37:02 -0700185cond_syscall(compat_sys_signalfd);
Ingo Molnar9b813612008-07-25 13:02:37 +0200186cond_syscall(compat_sys_signalfd4);
Davide Libenzi4d672e72008-02-04 22:27:26 -0800187cond_syscall(sys_timerfd_create);
188cond_syscall(sys_timerfd_settime);
189cond_syscall(sys_timerfd_gettime);
190cond_syscall(compat_sys_timerfd_settime);
191cond_syscall(compat_sys_timerfd_gettime);
Davide Libenzie1ad7462007-05-10 22:23:19 -0700192cond_syscall(sys_eventfd);
Ulrich Drepperb087498e2008-07-23 21:29:25 -0700193cond_syscall(sys_eventfd2);
Thomas Gleixner0793a612008-12-04 20:12:29 +0100194
195/* performance counters: */
Ingo Molnarcdd6c482009-09-21 12:02:48 +0200196cond_syscall(sys_perf_event_open);
Eric Paris11637e42009-12-17 21:24:25 -0500197
198/* fanotify! */
199cond_syscall(sys_fanotify_init);
Eric Parisbbaa4162009-12-17 21:24:26 -0500200cond_syscall(sys_fanotify_mark);
Aneesh Kumar K.V990d6c22011-01-29 18:43:26 +0530201
202/* open by handle */
203cond_syscall(sys_name_to_handle_at);
Aneesh Kumar K.Vbecfd1f2011-01-29 18:43:26 +0530204cond_syscall(sys_open_by_handle_at);
205cond_syscall(compat_sys_open_by_handle_at);