]>
Commit | Line | Data |
---|---|---|
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 */ | |
9 | asmlinkage long sys_ni_syscall(void); | |
10 | ||
11 | /* | |
12 | * Non-implemented system calls get redirected here. | |
13 | */ | |
14 | asmlinkage long sys_ni_syscall(void) | |
15 | { | |
16 | return -ENOSYS; | |
17 | } | |
18 | ||
19 | cond_syscall(sys_nfsservctl); | |
20 | cond_syscall(sys_quotactl); | |
21 | cond_syscall(sys32_quotactl); | |
22 | cond_syscall(sys_acct); | |
23 | cond_syscall(sys_lookup_dcookie); | |
24 | cond_syscall(sys_swapon); | |
25 | cond_syscall(sys_swapoff); | |
26 | cond_syscall(sys_kexec_load); | |
27 | cond_syscall(compat_sys_kexec_load); | |
28 | cond_syscall(sys_init_module); | |
29 | cond_syscall(sys_delete_module); | |
30 | cond_syscall(sys_socketpair); | |
31 | cond_syscall(sys_bind); | |
32 | cond_syscall(sys_listen); | |
33 | cond_syscall(sys_accept); | |
34 | cond_syscall(sys_paccept); | |
35 | cond_syscall(sys_connect); | |
36 | cond_syscall(sys_getsockname); | |
37 | cond_syscall(sys_getpeername); | |
38 | cond_syscall(sys_sendto); | |
39 | cond_syscall(sys_send); | |
40 | cond_syscall(sys_recvfrom); | |
41 | cond_syscall(sys_recv); | |
42 | cond_syscall(sys_socket); | |
43 | cond_syscall(sys_setsockopt); | |
44 | cond_syscall(compat_sys_setsockopt); | |
45 | cond_syscall(sys_getsockopt); | |
46 | cond_syscall(compat_sys_getsockopt); | |
47 | cond_syscall(sys_shutdown); | |
48 | cond_syscall(sys_sendmsg); | |
49 | cond_syscall(compat_sys_sendmsg); | |
50 | cond_syscall(sys_recvmsg); | |
51 | cond_syscall(compat_sys_recvmsg); | |
52 | cond_syscall(sys_socketcall); | |
53 | cond_syscall(sys_futex); | |
54 | cond_syscall(compat_sys_futex); | |
55 | cond_syscall(sys_set_robust_list); | |
56 | cond_syscall(compat_sys_set_robust_list); | |
57 | cond_syscall(sys_get_robust_list); | |
58 | cond_syscall(compat_sys_get_robust_list); | |
59 | cond_syscall(sys_epoll_create); | |
60 | cond_syscall(sys_epoll_create1); | |
61 | cond_syscall(sys_epoll_ctl); | |
62 | cond_syscall(sys_epoll_wait); | |
63 | cond_syscall(sys_epoll_pwait); | |
64 | cond_syscall(compat_sys_epoll_pwait); | |
65 | cond_syscall(sys_semget); | |
66 | cond_syscall(sys_semop); | |
67 | cond_syscall(sys_semtimedop); | |
68 | cond_syscall(sys_semctl); | |
69 | cond_syscall(sys_msgget); | |
70 | cond_syscall(sys_msgsnd); | |
71 | cond_syscall(sys_msgrcv); | |
72 | cond_syscall(sys_msgctl); | |
73 | cond_syscall(sys_shmget); | |
74 | cond_syscall(sys_shmat); | |
75 | cond_syscall(sys_shmdt); | |
76 | cond_syscall(sys_shmctl); | |
77 | cond_syscall(sys_mq_open); | |
78 | cond_syscall(sys_mq_unlink); | |
79 | cond_syscall(sys_mq_timedsend); | |
80 | cond_syscall(sys_mq_timedreceive); | |
81 | cond_syscall(sys_mq_notify); | |
82 | cond_syscall(sys_mq_getsetattr); | |
83 | cond_syscall(compat_sys_mq_open); | |
84 | cond_syscall(compat_sys_mq_timedsend); | |
85 | cond_syscall(compat_sys_mq_timedreceive); | |
86 | cond_syscall(compat_sys_mq_notify); | |
87 | cond_syscall(compat_sys_mq_getsetattr); | |
88 | cond_syscall(sys_mbind); | |
89 | cond_syscall(sys_get_mempolicy); | |
90 | cond_syscall(sys_set_mempolicy); | |
91 | cond_syscall(compat_sys_mbind); | |
92 | cond_syscall(compat_sys_get_mempolicy); | |
93 | cond_syscall(compat_sys_set_mempolicy); | |
94 | cond_syscall(sys_add_key); | |
95 | cond_syscall(sys_request_key); | |
96 | cond_syscall(sys_keyctl); | |
97 | cond_syscall(compat_sys_keyctl); | |
98 | cond_syscall(compat_sys_socketcall); | |
99 | cond_syscall(sys_inotify_init); | |
100 | cond_syscall(sys_inotify_init1); | |
101 | cond_syscall(sys_inotify_add_watch); | |
102 | cond_syscall(sys_inotify_rm_watch); | |
103 | cond_syscall(sys_migrate_pages); | |
104 | cond_syscall(sys_move_pages); | |
105 | cond_syscall(sys_chown16); | |
106 | cond_syscall(sys_fchown16); | |
107 | cond_syscall(sys_getegid16); | |
108 | cond_syscall(sys_geteuid16); | |
109 | cond_syscall(sys_getgid16); | |
110 | cond_syscall(sys_getgroups16); | |
111 | cond_syscall(sys_getresgid16); | |
112 | cond_syscall(sys_getresuid16); | |
113 | cond_syscall(sys_getuid16); | |
114 | cond_syscall(sys_lchown16); | |
115 | cond_syscall(sys_setfsgid16); | |
116 | cond_syscall(sys_setfsuid16); | |
117 | cond_syscall(sys_setgid16); | |
118 | cond_syscall(sys_setgroups16); | |
119 | cond_syscall(sys_setregid16); | |
120 | cond_syscall(sys_setresgid16); | |
121 | cond_syscall(sys_setresuid16); | |
122 | cond_syscall(sys_setreuid16); | |
123 | cond_syscall(sys_setuid16); | |
124 | cond_syscall(sys_vm86old); | |
125 | cond_syscall(sys_vm86); | |
126 | cond_syscall(compat_sys_ipc); | |
127 | cond_syscall(compat_sys_sysctl); | |
128 | ||
129 | /* arch-specific weak syscall entries */ | |
130 | cond_syscall(sys_pciconfig_read); | |
131 | cond_syscall(sys_pciconfig_write); | |
132 | cond_syscall(sys_pciconfig_iobase); | |
133 | cond_syscall(sys32_ipc); | |
134 | cond_syscall(sys32_sysctl); | |
135 | cond_syscall(ppc_rtas); | |
136 | cond_syscall(sys_spu_run); | |
137 | cond_syscall(sys_spu_create); | |
138 | cond_syscall(sys_subpage_prot); | |
139 | ||
140 | /* mmu depending weak syscall entries */ | |
141 | cond_syscall(sys_mprotect); | |
142 | cond_syscall(sys_msync); | |
143 | cond_syscall(sys_mlock); | |
144 | cond_syscall(sys_munlock); | |
145 | cond_syscall(sys_mlockall); | |
146 | cond_syscall(sys_munlockall); | |
147 | cond_syscall(sys_mincore); | |
148 | cond_syscall(sys_madvise); | |
149 | cond_syscall(sys_mremap); | |
150 | cond_syscall(sys_remap_file_pages); | |
151 | cond_syscall(compat_sys_move_pages); | |
152 | cond_syscall(compat_sys_migrate_pages); | |
153 | ||
154 | /* block-layer dependent */ | |
155 | cond_syscall(sys_bdflush); | |
156 | cond_syscall(sys_ioprio_set); | |
157 | cond_syscall(sys_ioprio_get); | |
158 | ||
159 | /* New file descriptors */ | |
160 | cond_syscall(sys_signalfd); | |
161 | cond_syscall(sys_signalfd4); | |
162 | cond_syscall(compat_sys_signalfd); | |
163 | cond_syscall(compat_sys_signalfd4); | |
164 | cond_syscall(sys_timerfd_create); | |
165 | cond_syscall(sys_timerfd_settime); | |
166 | cond_syscall(sys_timerfd_gettime); | |
167 | cond_syscall(compat_sys_timerfd_settime); | |
168 | cond_syscall(compat_sys_timerfd_gettime); | |
169 | cond_syscall(sys_eventfd); | |
170 | cond_syscall(sys_eventfd2); |