Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / kernel / sys_ni.c
bloba9a5de07c4f16e1310616cb9dd51903f710199ff
2 #include <linux/linkage.h>
3 #include <linux/errno.h>
5 #include <asm/unistd.h>
7 /* we can't #include <linux/syscalls.h> here,
8 but tell gcc to not warn with -Wmissing-prototypes */
9 asmlinkage long sys_ni_syscall(void);
12 * Non-implemented system calls get redirected here.
14 asmlinkage long sys_ni_syscall(void)
16 return -ENOSYS;
19 cond_syscall(sys_quotactl);
20 cond_syscall(sys32_quotactl);
21 cond_syscall(sys_acct);
22 cond_syscall(sys_lookup_dcookie);
23 cond_syscall(sys_swapon);
24 cond_syscall(sys_swapoff);
25 cond_syscall(sys_kexec_load);
26 cond_syscall(compat_sys_kexec_load);
27 cond_syscall(sys_init_module);
28 cond_syscall(sys_delete_module);
29 cond_syscall(sys_socketpair);
30 cond_syscall(sys_bind);
31 cond_syscall(sys_listen);
32 cond_syscall(sys_accept);
33 cond_syscall(sys_accept4);
34 cond_syscall(sys_connect);
35 cond_syscall(sys_getsockname);
36 cond_syscall(sys_getpeername);
37 cond_syscall(sys_sendto);
38 cond_syscall(sys_send);
39 cond_syscall(sys_recvfrom);
40 cond_syscall(sys_recv);
41 cond_syscall(sys_socket);
42 cond_syscall(sys_setsockopt);
43 cond_syscall(compat_sys_setsockopt);
44 cond_syscall(sys_getsockopt);
45 cond_syscall(compat_sys_getsockopt);
46 cond_syscall(sys_shutdown);
47 cond_syscall(sys_sendmsg);
48 cond_syscall(sys_sendmmsg);
49 cond_syscall(compat_sys_sendmsg);
50 cond_syscall(compat_sys_sendmmsg);
51 cond_syscall(sys_recvmsg);
52 cond_syscall(sys_recvmmsg);
53 cond_syscall(compat_sys_recvmsg);
54 cond_syscall(compat_sys_recv);
55 cond_syscall(compat_sys_recvfrom);
56 cond_syscall(compat_sys_recvmmsg);
57 cond_syscall(sys_socketcall);
58 cond_syscall(sys_futex);
59 cond_syscall(compat_sys_futex);
60 cond_syscall(sys_set_robust_list);
61 cond_syscall(compat_sys_set_robust_list);
62 cond_syscall(sys_get_robust_list);
63 cond_syscall(compat_sys_get_robust_list);
64 cond_syscall(sys_epoll_create);
65 cond_syscall(sys_epoll_create1);
66 cond_syscall(sys_epoll_ctl);
67 cond_syscall(sys_epoll_wait);
68 cond_syscall(sys_epoll_pwait);
69 cond_syscall(compat_sys_epoll_pwait);
70 cond_syscall(sys_semget);
71 cond_syscall(sys_semop);
72 cond_syscall(sys_semtimedop);
73 cond_syscall(compat_sys_semtimedop);
74 cond_syscall(sys_semctl);
75 cond_syscall(compat_sys_semctl);
76 cond_syscall(sys_msgget);
77 cond_syscall(sys_msgsnd);
78 cond_syscall(compat_sys_msgsnd);
79 cond_syscall(sys_msgrcv);
80 cond_syscall(compat_sys_msgrcv);
81 cond_syscall(sys_msgctl);
82 cond_syscall(compat_sys_msgctl);
83 cond_syscall(sys_shmget);
84 cond_syscall(sys_shmat);
85 cond_syscall(compat_sys_shmat);
86 cond_syscall(sys_shmdt);
87 cond_syscall(sys_shmctl);
88 cond_syscall(compat_sys_shmctl);
89 cond_syscall(sys_mq_open);
90 cond_syscall(sys_mq_unlink);
91 cond_syscall(sys_mq_timedsend);
92 cond_syscall(sys_mq_timedreceive);
93 cond_syscall(sys_mq_notify);
94 cond_syscall(sys_mq_getsetattr);
95 cond_syscall(compat_sys_mq_open);
96 cond_syscall(compat_sys_mq_timedsend);
97 cond_syscall(compat_sys_mq_timedreceive);
98 cond_syscall(compat_sys_mq_notify);
99 cond_syscall(compat_sys_mq_getsetattr);
100 cond_syscall(sys_mbind);
101 cond_syscall(sys_get_mempolicy);
102 cond_syscall(sys_set_mempolicy);
103 cond_syscall(compat_sys_mbind);
104 cond_syscall(compat_sys_get_mempolicy);
105 cond_syscall(compat_sys_set_mempolicy);
106 cond_syscall(sys_add_key);
107 cond_syscall(sys_request_key);
108 cond_syscall(sys_keyctl);
109 cond_syscall(compat_sys_keyctl);
110 cond_syscall(compat_sys_socketcall);
111 cond_syscall(sys_inotify_init);
112 cond_syscall(sys_inotify_init1);
113 cond_syscall(sys_inotify_add_watch);
114 cond_syscall(sys_inotify_rm_watch);
115 cond_syscall(sys_migrate_pages);
116 cond_syscall(sys_move_pages);
117 cond_syscall(sys_chown16);
118 cond_syscall(sys_fchown16);
119 cond_syscall(sys_getegid16);
120 cond_syscall(sys_geteuid16);
121 cond_syscall(sys_getgid16);
122 cond_syscall(sys_getgroups16);
123 cond_syscall(sys_getresgid16);
124 cond_syscall(sys_getresuid16);
125 cond_syscall(sys_getuid16);
126 cond_syscall(sys_lchown16);
127 cond_syscall(sys_setfsgid16);
128 cond_syscall(sys_setfsuid16);
129 cond_syscall(sys_setgid16);
130 cond_syscall(sys_setgroups16);
131 cond_syscall(sys_setregid16);
132 cond_syscall(sys_setresgid16);
133 cond_syscall(sys_setresuid16);
134 cond_syscall(sys_setreuid16);
135 cond_syscall(sys_setuid16);
136 cond_syscall(sys_vm86old);
137 cond_syscall(sys_vm86);
138 cond_syscall(sys_ipc);
139 cond_syscall(compat_sys_ipc);
140 cond_syscall(compat_sys_sysctl);
141 cond_syscall(sys_flock);
142 cond_syscall(sys_io_setup);
143 cond_syscall(sys_io_destroy);
144 cond_syscall(sys_io_submit);
145 cond_syscall(sys_io_cancel);
146 cond_syscall(sys_io_getevents);
147 cond_syscall(sys_syslog);
149 /* arch-specific weak syscall entries */
150 cond_syscall(sys_pciconfig_read);
151 cond_syscall(sys_pciconfig_write);
152 cond_syscall(sys_pciconfig_iobase);
153 cond_syscall(sys32_ipc);
154 cond_syscall(ppc_rtas);
155 cond_syscall(sys_spu_run);
156 cond_syscall(sys_spu_create);
157 cond_syscall(sys_subpage_prot);
159 /* mmu depending weak syscall entries */
160 cond_syscall(sys_mprotect);
161 cond_syscall(sys_msync);
162 cond_syscall(sys_mlock);
163 cond_syscall(sys_munlock);
164 cond_syscall(sys_mlockall);
165 cond_syscall(sys_munlockall);
166 cond_syscall(sys_mincore);
167 cond_syscall(sys_madvise);
168 cond_syscall(sys_mremap);
169 cond_syscall(sys_remap_file_pages);
170 cond_syscall(compat_sys_move_pages);
171 cond_syscall(compat_sys_migrate_pages);
173 /* block-layer dependent */
174 cond_syscall(sys_bdflush);
175 cond_syscall(sys_ioprio_set);
176 cond_syscall(sys_ioprio_get);
178 /* New file descriptors */
179 cond_syscall(sys_signalfd);
180 cond_syscall(sys_signalfd4);
181 cond_syscall(compat_sys_signalfd);
182 cond_syscall(compat_sys_signalfd4);
183 cond_syscall(sys_timerfd_create);
184 cond_syscall(sys_timerfd_settime);
185 cond_syscall(sys_timerfd_gettime);
186 cond_syscall(compat_sys_timerfd_settime);
187 cond_syscall(compat_sys_timerfd_gettime);
188 cond_syscall(sys_eventfd);
189 cond_syscall(sys_eventfd2);
191 /* performance counters: */
192 cond_syscall(sys_perf_event_open);
194 /* fanotify! */
195 cond_syscall(sys_fanotify_init);
196 cond_syscall(sys_fanotify_mark);
198 /* open by handle */
199 cond_syscall(sys_name_to_handle_at);
200 cond_syscall(sys_open_by_handle_at);
201 cond_syscall(compat_sys_open_by_handle_at);