Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | |
2 | #include <linux/linkage.h> | |
3 | #include <linux/errno.h> | |
4 | ||
5 | #include <asm/unistd.h> | |
6 | ||
0732a552 AB |
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); | |
10 | ||
1da177e4 LT |
11 | /* |
12 | * Non-implemented system calls get redirected here. | |
13 | */ | |
14 | asmlinkage long sys_ni_syscall(void) | |
15 | { | |
16 | return -ENOSYS; | |
17 | } | |
18 | ||
1da177e4 | 19 | cond_syscall(sys_quotactl); |
b716395e | 20 | cond_syscall(sys32_quotactl); |
1da177e4 LT |
21 | cond_syscall(sys_acct); |
22 | cond_syscall(sys_lookup_dcookie); | |
d5dc77bf | 23 | cond_syscall(compat_sys_lookup_dcookie); |
1da177e4 LT |
24 | cond_syscall(sys_swapon); |
25 | cond_syscall(sys_swapoff); | |
dc009d92 EB |
26 | cond_syscall(sys_kexec_load); |
27 | cond_syscall(compat_sys_kexec_load); | |
f0895685 | 28 | cond_syscall(sys_kexec_file_load); |
1da177e4 | 29 | cond_syscall(sys_init_module); |
34e1169d | 30 | cond_syscall(sys_finit_module); |
1da177e4 LT |
31 | cond_syscall(sys_delete_module); |
32 | cond_syscall(sys_socketpair); | |
33 | cond_syscall(sys_bind); | |
34 | cond_syscall(sys_listen); | |
35 | cond_syscall(sys_accept); | |
de11defe | 36 | cond_syscall(sys_accept4); |
1da177e4 LT |
37 | cond_syscall(sys_connect); |
38 | cond_syscall(sys_getsockname); | |
39 | cond_syscall(sys_getpeername); | |
40 | cond_syscall(sys_sendto); | |
41 | cond_syscall(sys_send); | |
42 | cond_syscall(sys_recvfrom); | |
43 | cond_syscall(sys_recv); | |
44 | cond_syscall(sys_socket); | |
45 | cond_syscall(sys_setsockopt); | |
f3baa482 | 46 | cond_syscall(compat_sys_setsockopt); |
1da177e4 | 47 | cond_syscall(sys_getsockopt); |
f3baa482 | 48 | cond_syscall(compat_sys_getsockopt); |
1da177e4 LT |
49 | cond_syscall(sys_shutdown); |
50 | cond_syscall(sys_sendmsg); | |
228e548e | 51 | cond_syscall(sys_sendmmsg); |
f3baa482 | 52 | cond_syscall(compat_sys_sendmsg); |
228e548e | 53 | cond_syscall(compat_sys_sendmmsg); |
1da177e4 | 54 | cond_syscall(sys_recvmsg); |
a2e27255 | 55 | cond_syscall(sys_recvmmsg); |
f3baa482 | 56 | cond_syscall(compat_sys_recvmsg); |
1ef21199 | 57 | cond_syscall(compat_sys_recv); |
dedcf297 | 58 | cond_syscall(compat_sys_recvfrom); |
a2e27255 | 59 | cond_syscall(compat_sys_recvmmsg); |
1da177e4 LT |
60 | cond_syscall(sys_socketcall); |
61 | cond_syscall(sys_futex); | |
62 | cond_syscall(compat_sys_futex); | |
0771dfef IM |
63 | cond_syscall(sys_set_robust_list); |
64 | cond_syscall(compat_sys_set_robust_list); | |
65 | cond_syscall(sys_get_robust_list); | |
66 | cond_syscall(compat_sys_get_robust_list); | |
1da177e4 | 67 | cond_syscall(sys_epoll_create); |
5df439ef | 68 | cond_syscall(sys_epoll_create1); |
1da177e4 LT |
69 | cond_syscall(sys_epoll_ctl); |
70 | cond_syscall(sys_epoll_wait); | |
39af1143 | 71 | cond_syscall(sys_epoll_pwait); |
5f17156f | 72 | cond_syscall(compat_sys_epoll_pwait); |
1da177e4 LT |
73 | cond_syscall(sys_semget); |
74 | cond_syscall(sys_semop); | |
75 | cond_syscall(sys_semtimedop); | |
be84bfcc | 76 | cond_syscall(compat_sys_semtimedop); |
1da177e4 | 77 | cond_syscall(sys_semctl); |
be84bfcc | 78 | cond_syscall(compat_sys_semctl); |
1da177e4 LT |
79 | cond_syscall(sys_msgget); |
80 | cond_syscall(sys_msgsnd); | |
be84bfcc | 81 | cond_syscall(compat_sys_msgsnd); |
1da177e4 | 82 | cond_syscall(sys_msgrcv); |
be84bfcc | 83 | cond_syscall(compat_sys_msgrcv); |
1da177e4 | 84 | cond_syscall(sys_msgctl); |
be84bfcc | 85 | cond_syscall(compat_sys_msgctl); |
1da177e4 | 86 | cond_syscall(sys_shmget); |
7d87e14c | 87 | cond_syscall(sys_shmat); |
be84bfcc | 88 | cond_syscall(compat_sys_shmat); |
1da177e4 LT |
89 | cond_syscall(sys_shmdt); |
90 | cond_syscall(sys_shmctl); | |
be84bfcc | 91 | cond_syscall(compat_sys_shmctl); |
1da177e4 LT |
92 | cond_syscall(sys_mq_open); |
93 | cond_syscall(sys_mq_unlink); | |
94 | cond_syscall(sys_mq_timedsend); | |
95 | cond_syscall(sys_mq_timedreceive); | |
96 | cond_syscall(sys_mq_notify); | |
97 | cond_syscall(sys_mq_getsetattr); | |
98 | cond_syscall(compat_sys_mq_open); | |
99 | cond_syscall(compat_sys_mq_timedsend); | |
100 | cond_syscall(compat_sys_mq_timedreceive); | |
101 | cond_syscall(compat_sys_mq_notify); | |
102 | cond_syscall(compat_sys_mq_getsetattr); | |
103 | cond_syscall(sys_mbind); | |
104 | cond_syscall(sys_get_mempolicy); | |
105 | cond_syscall(sys_set_mempolicy); | |
106 | cond_syscall(compat_sys_mbind); | |
107 | cond_syscall(compat_sys_get_mempolicy); | |
108 | cond_syscall(compat_sys_set_mempolicy); | |
109 | cond_syscall(sys_add_key); | |
110 | cond_syscall(sys_request_key); | |
111 | cond_syscall(sys_keyctl); | |
112 | cond_syscall(compat_sys_keyctl); | |
113 | cond_syscall(compat_sys_socketcall); | |
0eeca283 | 114 | cond_syscall(sys_inotify_init); |
4006553b | 115 | cond_syscall(sys_inotify_init1); |
0eeca283 RL |
116 | cond_syscall(sys_inotify_add_watch); |
117 | cond_syscall(sys_inotify_rm_watch); | |
39743889 | 118 | cond_syscall(sys_migrate_pages); |
742755a1 | 119 | cond_syscall(sys_move_pages); |
e585e470 MM |
120 | cond_syscall(sys_chown16); |
121 | cond_syscall(sys_fchown16); | |
122 | cond_syscall(sys_getegid16); | |
123 | cond_syscall(sys_geteuid16); | |
124 | cond_syscall(sys_getgid16); | |
125 | cond_syscall(sys_getgroups16); | |
126 | cond_syscall(sys_getresgid16); | |
127 | cond_syscall(sys_getresuid16); | |
128 | cond_syscall(sys_getuid16); | |
129 | cond_syscall(sys_lchown16); | |
130 | cond_syscall(sys_setfsgid16); | |
131 | cond_syscall(sys_setfsuid16); | |
132 | cond_syscall(sys_setgid16); | |
133 | cond_syscall(sys_setgroups16); | |
134 | cond_syscall(sys_setregid16); | |
135 | cond_syscall(sys_setresgid16); | |
136 | cond_syscall(sys_setresuid16); | |
137 | cond_syscall(sys_setreuid16); | |
138 | cond_syscall(sys_setuid16); | |
f6187769 FF |
139 | cond_syscall(sys_sgetmask); |
140 | cond_syscall(sys_ssetmask); | |
64ca9004 MM |
141 | cond_syscall(sys_vm86old); |
142 | cond_syscall(sys_vm86); | |
baed7fc9 | 143 | cond_syscall(sys_ipc); |
7fd105e7 SR |
144 | cond_syscall(compat_sys_ipc); |
145 | cond_syscall(compat_sys_sysctl); | |
bfcd17a6 | 146 | cond_syscall(sys_flock); |
ebf3f09c TP |
147 | cond_syscall(sys_io_setup); |
148 | cond_syscall(sys_io_destroy); | |
149 | cond_syscall(sys_io_submit); | |
150 | cond_syscall(sys_io_cancel); | |
151 | cond_syscall(sys_io_getevents); | |
6af9f7bf | 152 | cond_syscall(sys_sysfs); |
f627a741 | 153 | cond_syscall(sys_syslog); |
fcf63409 CY |
154 | cond_syscall(sys_process_vm_readv); |
155 | cond_syscall(sys_process_vm_writev); | |
156 | cond_syscall(compat_sys_process_vm_readv); | |
157 | cond_syscall(compat_sys_process_vm_writev); | |
69369a70 | 158 | cond_syscall(sys_uselib); |
1da177e4 LT |
159 | |
160 | /* arch-specific weak syscall entries */ | |
161 | cond_syscall(sys_pciconfig_read); | |
162 | cond_syscall(sys_pciconfig_write); | |
163 | cond_syscall(sys_pciconfig_iobase); | |
56e41d3c | 164 | cond_syscall(compat_sys_s390_ipc); |
1da177e4 | 165 | cond_syscall(ppc_rtas); |
67207b96 AB |
166 | cond_syscall(sys_spu_run); |
167 | cond_syscall(sys_spu_create); | |
fa28237c | 168 | cond_syscall(sys_subpage_prot); |
3016b421 HC |
169 | |
170 | /* mmu depending weak syscall entries */ | |
171 | cond_syscall(sys_mprotect); | |
172 | cond_syscall(sys_msync); | |
173 | cond_syscall(sys_mlock); | |
174 | cond_syscall(sys_munlock); | |
175 | cond_syscall(sys_mlockall); | |
176 | cond_syscall(sys_munlockall); | |
177 | cond_syscall(sys_mincore); | |
178 | cond_syscall(sys_madvise); | |
179 | cond_syscall(sys_mremap); | |
180 | cond_syscall(sys_remap_file_pages); | |
1b2db9fb | 181 | cond_syscall(compat_sys_move_pages); |
3fd59397 | 182 | cond_syscall(compat_sys_migrate_pages); |
9361401e DH |
183 | |
184 | /* block-layer dependent */ | |
185 | cond_syscall(sys_bdflush); | |
186 | cond_syscall(sys_ioprio_set); | |
187 | cond_syscall(sys_ioprio_get); | |
fba2afaa DL |
188 | |
189 | /* New file descriptors */ | |
190 | cond_syscall(sys_signalfd); | |
9deb27ba | 191 | cond_syscall(sys_signalfd4); |
8df767dd | 192 | cond_syscall(compat_sys_signalfd); |
9b813616 | 193 | cond_syscall(compat_sys_signalfd4); |
4d672e7a DL |
194 | cond_syscall(sys_timerfd_create); |
195 | cond_syscall(sys_timerfd_settime); | |
196 | cond_syscall(sys_timerfd_gettime); | |
197 | cond_syscall(compat_sys_timerfd_settime); | |
198 | cond_syscall(compat_sys_timerfd_gettime); | |
e1ad7468 | 199 | cond_syscall(sys_eventfd); |
b087498e | 200 | cond_syscall(sys_eventfd2); |
9183df25 | 201 | cond_syscall(sys_memfd_create); |
0793a61d TG |
202 | |
203 | /* performance counters: */ | |
cdd6c482 | 204 | cond_syscall(sys_perf_event_open); |
11637e4b EP |
205 | |
206 | /* fanotify! */ | |
207 | cond_syscall(sys_fanotify_init); | |
bbaa4168 | 208 | cond_syscall(sys_fanotify_mark); |
91c2e0bc | 209 | cond_syscall(compat_sys_fanotify_mark); |
990d6c2d AK |
210 | |
211 | /* open by handle */ | |
212 | cond_syscall(sys_name_to_handle_at); | |
becfd1f3 AK |
213 | cond_syscall(sys_open_by_handle_at); |
214 | cond_syscall(compat_sys_open_by_handle_at); | |
d97b46a6 CG |
215 | |
216 | /* compare kernel pointers */ | |
217 | cond_syscall(sys_kcmp); | |
48dc92b9 KC |
218 | |
219 | /* operate on Secure Computing state */ | |
220 | cond_syscall(sys_seccomp); |