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_quotactl);
20cond_syscall(sys32_quotactl);
21cond_syscall(sys_acct);
22cond_syscall(sys_lookup_dcookie);
23cond_syscall(sys_swapon);
24cond_syscall(sys_swapoff);
25cond_syscall(sys_kexec_load);
26cond_syscall(compat_sys_kexec_load);
27cond_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);
33cond_syscall(sys_accept4);
34cond_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);
43cond_syscall(compat_sys_setsockopt);
44cond_syscall(sys_getsockopt);
45cond_syscall(compat_sys_getsockopt);
46cond_syscall(sys_shutdown);
47cond_syscall(sys_sendmsg);
48cond_syscall(sys_sendmmsg);
49cond_syscall(compat_sys_sendmsg);
50cond_syscall(compat_sys_sendmmsg);
51cond_syscall(sys_recvmsg);
52cond_syscall(sys_recvmmsg);
53cond_syscall(compat_sys_recvmsg);
54cond_syscall(compat_sys_recv);
55cond_syscall(compat_sys_recvfrom);
56cond_syscall(compat_sys_recvmmsg);
57cond_syscall(sys_socketcall);
58cond_syscall(sys_futex);
59cond_syscall(compat_sys_futex);
60cond_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);
64cond_syscall(sys_epoll_create);
65cond_syscall(sys_epoll_create1);
66cond_syscall(sys_epoll_ctl);
67cond_syscall(sys_epoll_wait);
68cond_syscall(sys_epoll_pwait);
69cond_syscall(compat_sys_epoll_pwait);
70cond_syscall(sys_semget);
71cond_syscall(sys_semop);
72cond_syscall(sys_semtimedop);
73cond_syscall(compat_sys_semtimedop);
74cond_syscall(sys_semctl);
75cond_syscall(compat_sys_semctl);
76cond_syscall(sys_msgget);
77cond_syscall(sys_msgsnd);
78cond_syscall(compat_sys_msgsnd);
79cond_syscall(sys_msgrcv);
80cond_syscall(compat_sys_msgrcv);
81cond_syscall(sys_msgctl);
82cond_syscall(compat_sys_msgctl);
83cond_syscall(sys_shmget);
84cond_syscall(sys_shmat);
85cond_syscall(compat_sys_shmat);
86cond_syscall(sys_shmdt);
87cond_syscall(sys_shmctl);
88cond_syscall(compat_sys_shmctl);
89cond_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);
111cond_syscall(sys_inotify_init);
112cond_syscall(sys_inotify_init1);
113cond_syscall(sys_inotify_add_watch);
114cond_syscall(sys_inotify_rm_watch);
115cond_syscall(sys_migrate_pages);
116cond_syscall(sys_move_pages);
117cond_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);
136cond_syscall(sys_vm86old);
137cond_syscall(sys_vm86);
138cond_syscall(sys_ipc);
139cond_syscall(compat_sys_ipc);
140cond_syscall(compat_sys_sysctl);
141cond_syscall(sys_flock);
142cond_syscall(sys_io_setup);
143cond_syscall(sys_io_destroy);
144cond_syscall(sys_io_submit);
145cond_syscall(sys_io_cancel);
146cond_syscall(sys_io_getevents);
147cond_syscall(sys_syslog);
148cond_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);
152
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);
158cond_syscall(ppc_rtas);
159cond_syscall(sys_spu_run);
160cond_syscall(sys_spu_create);
161cond_syscall(sys_subpage_prot);
162
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);
174cond_syscall(compat_sys_move_pages);
175cond_syscall(compat_sys_migrate_pages);
176
177/* block-layer dependent */
178cond_syscall(sys_bdflush);
179cond_syscall(sys_ioprio_set);
180cond_syscall(sys_ioprio_get);
181
182/* New file descriptors */
183cond_syscall(sys_signalfd);
184cond_syscall(sys_signalfd4);
185cond_syscall(compat_sys_signalfd);
186cond_syscall(compat_sys_signalfd4);
187cond_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);
192cond_syscall(sys_eventfd);
193cond_syscall(sys_eventfd2);
194
195/* performance counters: */
196cond_syscall(sys_perf_event_open);
197
198/* fanotify! */
199cond_syscall(sys_fanotify_init);
200cond_syscall(sys_fanotify_mark);
201
202/* open by handle */
203cond_syscall(sys_name_to_handle_at);
204cond_syscall(sys_open_by_handle_at);
205cond_syscall(compat_sys_open_by_handle_at);
206
207/* compare kernel pointers */
208cond_syscall(sys_kcmp);
209

Archive Download this file



interactive