Root/kernel/sys_ni.c

1
2#include <linux/linkage.h>
3#include <linux/errno.h>
4
5#include <asm/unistd.h>
6
7/* 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
11/*
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);
21cond_syscall(sys32_quotactl);
22cond_syscall(sys_acct);
23cond_syscall(sys_lookup_dcookie);
24cond_syscall(sys_swapon);
25cond_syscall(sys_swapoff);
26cond_syscall(sys_kexec_load);
27cond_syscall(compat_sys_kexec_load);
28cond_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);
34cond_syscall(sys_accept4);
35cond_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);
44cond_syscall(compat_sys_setsockopt);
45cond_syscall(sys_getsockopt);
46cond_syscall(compat_sys_getsockopt);
47cond_syscall(sys_shutdown);
48cond_syscall(sys_sendmsg);
49cond_syscall(sys_sendmmsg);
50cond_syscall(compat_sys_sendmsg);
51cond_syscall(compat_sys_sendmmsg);
52cond_syscall(sys_recvmsg);
53cond_syscall(sys_recvmmsg);
54cond_syscall(compat_sys_recvmsg);
55cond_syscall(compat_sys_recv);
56cond_syscall(compat_sys_recvfrom);
57cond_syscall(compat_sys_recvmmsg);
58cond_syscall(sys_socketcall);
59cond_syscall(sys_futex);
60cond_syscall(compat_sys_futex);
61cond_syscall(sys_set_robust_list);
62cond_syscall(compat_sys_set_robust_list);
63cond_syscall(sys_get_robust_list);
64cond_syscall(compat_sys_get_robust_list);
65cond_syscall(sys_epoll_create);
66cond_syscall(sys_epoll_create1);
67cond_syscall(sys_epoll_ctl);
68cond_syscall(sys_epoll_wait);
69cond_syscall(sys_epoll_pwait);
70cond_syscall(compat_sys_epoll_pwait);
71cond_syscall(sys_semget);
72cond_syscall(sys_semop);
73cond_syscall(sys_semtimedop);
74cond_syscall(compat_sys_semtimedop);
75cond_syscall(sys_semctl);
76cond_syscall(compat_sys_semctl);
77cond_syscall(sys_msgget);
78cond_syscall(sys_msgsnd);
79cond_syscall(compat_sys_msgsnd);
80cond_syscall(sys_msgrcv);
81cond_syscall(compat_sys_msgrcv);
82cond_syscall(sys_msgctl);
83cond_syscall(compat_sys_msgctl);
84cond_syscall(sys_shmget);
85cond_syscall(sys_shmat);
86cond_syscall(compat_sys_shmat);
87cond_syscall(sys_shmdt);
88cond_syscall(sys_shmctl);
89cond_syscall(compat_sys_shmctl);
90cond_syscall(sys_mq_open);
91cond_syscall(sys_mq_unlink);
92cond_syscall(sys_mq_timedsend);
93cond_syscall(sys_mq_timedreceive);
94cond_syscall(sys_mq_notify);
95cond_syscall(sys_mq_getsetattr);
96cond_syscall(compat_sys_mq_open);
97cond_syscall(compat_sys_mq_timedsend);
98cond_syscall(compat_sys_mq_timedreceive);
99cond_syscall(compat_sys_mq_notify);
100cond_syscall(compat_sys_mq_getsetattr);
101cond_syscall(sys_mbind);
102cond_syscall(sys_get_mempolicy);
103cond_syscall(sys_set_mempolicy);
104cond_syscall(compat_sys_mbind);
105cond_syscall(compat_sys_get_mempolicy);
106cond_syscall(compat_sys_set_mempolicy);
107cond_syscall(sys_add_key);
108cond_syscall(sys_request_key);
109cond_syscall(sys_keyctl);
110cond_syscall(compat_sys_keyctl);
111cond_syscall(compat_sys_socketcall);
112cond_syscall(sys_inotify_init);
113cond_syscall(sys_inotify_init1);
114cond_syscall(sys_inotify_add_watch);
115cond_syscall(sys_inotify_rm_watch);
116cond_syscall(sys_migrate_pages);
117cond_syscall(sys_move_pages);
118cond_syscall(sys_chown16);
119cond_syscall(sys_fchown16);
120cond_syscall(sys_getegid16);
121cond_syscall(sys_geteuid16);
122cond_syscall(sys_getgid16);
123cond_syscall(sys_getgroups16);
124cond_syscall(sys_getresgid16);
125cond_syscall(sys_getresuid16);
126cond_syscall(sys_getuid16);
127cond_syscall(sys_lchown16);
128cond_syscall(sys_setfsgid16);
129cond_syscall(sys_setfsuid16);
130cond_syscall(sys_setgid16);
131cond_syscall(sys_setgroups16);
132cond_syscall(sys_setregid16);
133cond_syscall(sys_setresgid16);
134cond_syscall(sys_setresuid16);
135cond_syscall(sys_setreuid16);
136cond_syscall(sys_setuid16);
137cond_syscall(sys_vm86old);
138cond_syscall(sys_vm86);
139cond_syscall(sys_ipc);
140cond_syscall(compat_sys_ipc);
141cond_syscall(compat_sys_sysctl);
142cond_syscall(sys_flock);
143cond_syscall(sys_io_setup);
144cond_syscall(sys_io_destroy);
145cond_syscall(sys_io_submit);
146cond_syscall(sys_io_cancel);
147cond_syscall(sys_io_getevents);
148cond_syscall(sys_syslog);
149
150/* arch-specific weak syscall entries */
151cond_syscall(sys_pciconfig_read);
152cond_syscall(sys_pciconfig_write);
153cond_syscall(sys_pciconfig_iobase);
154cond_syscall(sys32_ipc);
155cond_syscall(ppc_rtas);
156cond_syscall(sys_spu_run);
157cond_syscall(sys_spu_create);
158cond_syscall(sys_subpage_prot);
159
160/* mmu depending weak syscall entries */
161cond_syscall(sys_mprotect);
162cond_syscall(sys_msync);
163cond_syscall(sys_mlock);
164cond_syscall(sys_munlock);
165cond_syscall(sys_mlockall);
166cond_syscall(sys_munlockall);
167cond_syscall(sys_mincore);
168cond_syscall(sys_madvise);
169cond_syscall(sys_mremap);
170cond_syscall(sys_remap_file_pages);
171cond_syscall(compat_sys_move_pages);
172cond_syscall(compat_sys_migrate_pages);
173
174/* block-layer dependent */
175cond_syscall(sys_bdflush);
176cond_syscall(sys_ioprio_set);
177cond_syscall(sys_ioprio_get);
178
179/* New file descriptors */
180cond_syscall(sys_signalfd);
181cond_syscall(sys_signalfd4);
182cond_syscall(compat_sys_signalfd);
183cond_syscall(compat_sys_signalfd4);
184cond_syscall(sys_timerfd_create);
185cond_syscall(sys_timerfd_settime);
186cond_syscall(sys_timerfd_gettime);
187cond_syscall(compat_sys_timerfd_settime);
188cond_syscall(compat_sys_timerfd_gettime);
189cond_syscall(sys_eventfd);
190cond_syscall(sys_eventfd2);
191
192/* performance counters: */
193cond_syscall(sys_perf_event_open);
194
195/* fanotify! */
196cond_syscall(sys_fanotify_init);
197cond_syscall(sys_fanotify_mark);
198
199/* open by handle */
200cond_syscall(sys_name_to_handle_at);
201cond_syscall(sys_open_by_handle_at);
202cond_syscall(compat_sys_open_by_handle_at);
203

Archive Download this file



interactive