Back to home page

LXR

 
 

    


0001 
0002 #include <linux/linkage.h>
0003 #include <linux/errno.h>
0004 
0005 #include <asm/unistd.h>
0006 
0007 /*  we can't #include <linux/syscalls.h> here,
0008     but tell gcc to not warn with -Wmissing-prototypes  */
0009 asmlinkage long sys_ni_syscall(void);
0010 
0011 /*
0012  * Non-implemented system calls get redirected here.
0013  */
0014 asmlinkage long sys_ni_syscall(void)
0015 {
0016     return -ENOSYS;
0017 }
0018 
0019 cond_syscall(sys_quotactl);
0020 cond_syscall(sys32_quotactl);
0021 cond_syscall(sys_acct);
0022 cond_syscall(sys_lookup_dcookie);
0023 cond_syscall(compat_sys_lookup_dcookie);
0024 cond_syscall(sys_swapon);
0025 cond_syscall(sys_swapoff);
0026 cond_syscall(sys_kexec_load);
0027 cond_syscall(compat_sys_kexec_load);
0028 cond_syscall(sys_kexec_file_load);
0029 cond_syscall(sys_init_module);
0030 cond_syscall(sys_finit_module);
0031 cond_syscall(sys_delete_module);
0032 cond_syscall(sys_socketpair);
0033 cond_syscall(sys_bind);
0034 cond_syscall(sys_listen);
0035 cond_syscall(sys_accept);
0036 cond_syscall(sys_accept4);
0037 cond_syscall(sys_connect);
0038 cond_syscall(sys_getsockname);
0039 cond_syscall(sys_getpeername);
0040 cond_syscall(sys_sendto);
0041 cond_syscall(sys_send);
0042 cond_syscall(sys_recvfrom);
0043 cond_syscall(sys_recv);
0044 cond_syscall(sys_socket);
0045 cond_syscall(sys_setsockopt);
0046 cond_syscall(compat_sys_setsockopt);
0047 cond_syscall(sys_getsockopt);
0048 cond_syscall(compat_sys_getsockopt);
0049 cond_syscall(sys_shutdown);
0050 cond_syscall(sys_sendmsg);
0051 cond_syscall(sys_sendmmsg);
0052 cond_syscall(compat_sys_sendmsg);
0053 cond_syscall(compat_sys_sendmmsg);
0054 cond_syscall(sys_recvmsg);
0055 cond_syscall(sys_recvmmsg);
0056 cond_syscall(compat_sys_recvmsg);
0057 cond_syscall(compat_sys_recv);
0058 cond_syscall(compat_sys_recvfrom);
0059 cond_syscall(compat_sys_recvmmsg);
0060 cond_syscall(sys_socketcall);
0061 cond_syscall(sys_futex);
0062 cond_syscall(compat_sys_futex);
0063 cond_syscall(sys_set_robust_list);
0064 cond_syscall(compat_sys_set_robust_list);
0065 cond_syscall(sys_get_robust_list);
0066 cond_syscall(compat_sys_get_robust_list);
0067 cond_syscall(sys_epoll_create);
0068 cond_syscall(sys_epoll_create1);
0069 cond_syscall(sys_epoll_ctl);
0070 cond_syscall(sys_epoll_wait);
0071 cond_syscall(sys_epoll_pwait);
0072 cond_syscall(compat_sys_epoll_pwait);
0073 cond_syscall(sys_semget);
0074 cond_syscall(sys_semop);
0075 cond_syscall(sys_semtimedop);
0076 cond_syscall(compat_sys_semtimedop);
0077 cond_syscall(sys_semctl);
0078 cond_syscall(compat_sys_semctl);
0079 cond_syscall(sys_msgget);
0080 cond_syscall(sys_msgsnd);
0081 cond_syscall(compat_sys_msgsnd);
0082 cond_syscall(sys_msgrcv);
0083 cond_syscall(compat_sys_msgrcv);
0084 cond_syscall(sys_msgctl);
0085 cond_syscall(compat_sys_msgctl);
0086 cond_syscall(sys_shmget);
0087 cond_syscall(sys_shmat);
0088 cond_syscall(compat_sys_shmat);
0089 cond_syscall(sys_shmdt);
0090 cond_syscall(sys_shmctl);
0091 cond_syscall(compat_sys_shmctl);
0092 cond_syscall(sys_mq_open);
0093 cond_syscall(sys_mq_unlink);
0094 cond_syscall(sys_mq_timedsend);
0095 cond_syscall(sys_mq_timedreceive);
0096 cond_syscall(sys_mq_notify);
0097 cond_syscall(sys_mq_getsetattr);
0098 cond_syscall(compat_sys_mq_open);
0099 cond_syscall(compat_sys_mq_timedsend);
0100 cond_syscall(compat_sys_mq_timedreceive);
0101 cond_syscall(compat_sys_mq_notify);
0102 cond_syscall(compat_sys_mq_getsetattr);
0103 cond_syscall(sys_mbind);
0104 cond_syscall(sys_get_mempolicy);
0105 cond_syscall(sys_set_mempolicy);
0106 cond_syscall(compat_sys_mbind);
0107 cond_syscall(compat_sys_get_mempolicy);
0108 cond_syscall(compat_sys_set_mempolicy);
0109 cond_syscall(sys_add_key);
0110 cond_syscall(sys_request_key);
0111 cond_syscall(sys_keyctl);
0112 cond_syscall(compat_sys_keyctl);
0113 cond_syscall(compat_sys_socketcall);
0114 cond_syscall(sys_inotify_init);
0115 cond_syscall(sys_inotify_init1);
0116 cond_syscall(sys_inotify_add_watch);
0117 cond_syscall(sys_inotify_rm_watch);
0118 cond_syscall(sys_migrate_pages);
0119 cond_syscall(sys_move_pages);
0120 cond_syscall(sys_chown16);
0121 cond_syscall(sys_fchown16);
0122 cond_syscall(sys_getegid16);
0123 cond_syscall(sys_geteuid16);
0124 cond_syscall(sys_getgid16);
0125 cond_syscall(sys_getgroups16);
0126 cond_syscall(sys_getresgid16);
0127 cond_syscall(sys_getresuid16);
0128 cond_syscall(sys_getuid16);
0129 cond_syscall(sys_lchown16);
0130 cond_syscall(sys_setfsgid16);
0131 cond_syscall(sys_setfsuid16);
0132 cond_syscall(sys_setgid16);
0133 cond_syscall(sys_setgroups16);
0134 cond_syscall(sys_setregid16);
0135 cond_syscall(sys_setresgid16);
0136 cond_syscall(sys_setresuid16);
0137 cond_syscall(sys_setreuid16);
0138 cond_syscall(sys_setuid16);
0139 cond_syscall(sys_sgetmask);
0140 cond_syscall(sys_ssetmask);
0141 cond_syscall(sys_vm86old);
0142 cond_syscall(sys_vm86);
0143 cond_syscall(sys_modify_ldt);
0144 cond_syscall(sys_ipc);
0145 cond_syscall(compat_sys_ipc);
0146 cond_syscall(compat_sys_sysctl);
0147 cond_syscall(sys_flock);
0148 cond_syscall(sys_io_setup);
0149 cond_syscall(sys_io_destroy);
0150 cond_syscall(sys_io_submit);
0151 cond_syscall(sys_io_cancel);
0152 cond_syscall(sys_io_getevents);
0153 cond_syscall(compat_sys_io_setup);
0154 cond_syscall(compat_sys_io_submit);
0155 cond_syscall(compat_sys_io_getevents);
0156 cond_syscall(sys_sysfs);
0157 cond_syscall(sys_syslog);
0158 cond_syscall(sys_process_vm_readv);
0159 cond_syscall(sys_process_vm_writev);
0160 cond_syscall(compat_sys_process_vm_readv);
0161 cond_syscall(compat_sys_process_vm_writev);
0162 cond_syscall(sys_uselib);
0163 cond_syscall(sys_fadvise64);
0164 cond_syscall(sys_fadvise64_64);
0165 cond_syscall(sys_madvise);
0166 cond_syscall(sys_setuid);
0167 cond_syscall(sys_setregid);
0168 cond_syscall(sys_setgid);
0169 cond_syscall(sys_setreuid);
0170 cond_syscall(sys_setresuid);
0171 cond_syscall(sys_getresuid);
0172 cond_syscall(sys_setresgid);
0173 cond_syscall(sys_getresgid);
0174 cond_syscall(sys_setgroups);
0175 cond_syscall(sys_getgroups);
0176 cond_syscall(sys_setfsuid);
0177 cond_syscall(sys_setfsgid);
0178 cond_syscall(sys_capget);
0179 cond_syscall(sys_capset);
0180 cond_syscall(sys_copy_file_range);
0181 
0182 /* arch-specific weak syscall entries */
0183 cond_syscall(sys_pciconfig_read);
0184 cond_syscall(sys_pciconfig_write);
0185 cond_syscall(sys_pciconfig_iobase);
0186 cond_syscall(compat_sys_s390_ipc);
0187 cond_syscall(ppc_rtas);
0188 cond_syscall(sys_spu_run);
0189 cond_syscall(sys_spu_create);
0190 cond_syscall(sys_subpage_prot);
0191 cond_syscall(sys_s390_pci_mmio_read);
0192 cond_syscall(sys_s390_pci_mmio_write);
0193 
0194 /* mmu depending weak syscall entries */
0195 cond_syscall(sys_mprotect);
0196 cond_syscall(sys_msync);
0197 cond_syscall(sys_mlock);
0198 cond_syscall(sys_munlock);
0199 cond_syscall(sys_mlockall);
0200 cond_syscall(sys_munlockall);
0201 cond_syscall(sys_mlock2);
0202 cond_syscall(sys_mincore);
0203 cond_syscall(sys_madvise);
0204 cond_syscall(sys_mremap);
0205 cond_syscall(sys_remap_file_pages);
0206 cond_syscall(compat_sys_move_pages);
0207 cond_syscall(compat_sys_migrate_pages);
0208 
0209 /* block-layer dependent */
0210 cond_syscall(sys_bdflush);
0211 cond_syscall(sys_ioprio_set);
0212 cond_syscall(sys_ioprio_get);
0213 
0214 /* New file descriptors */
0215 cond_syscall(sys_signalfd);
0216 cond_syscall(sys_signalfd4);
0217 cond_syscall(compat_sys_signalfd);
0218 cond_syscall(compat_sys_signalfd4);
0219 cond_syscall(sys_timerfd_create);
0220 cond_syscall(sys_timerfd_settime);
0221 cond_syscall(sys_timerfd_gettime);
0222 cond_syscall(compat_sys_timerfd_settime);
0223 cond_syscall(compat_sys_timerfd_gettime);
0224 cond_syscall(sys_eventfd);
0225 cond_syscall(sys_eventfd2);
0226 cond_syscall(sys_memfd_create);
0227 cond_syscall(sys_userfaultfd);
0228 
0229 /* performance counters: */
0230 cond_syscall(sys_perf_event_open);
0231 
0232 /* fanotify! */
0233 cond_syscall(sys_fanotify_init);
0234 cond_syscall(sys_fanotify_mark);
0235 cond_syscall(compat_sys_fanotify_mark);
0236 
0237 /* open by handle */
0238 cond_syscall(sys_name_to_handle_at);
0239 cond_syscall(sys_open_by_handle_at);
0240 cond_syscall(compat_sys_open_by_handle_at);
0241 
0242 /* compare kernel pointers */
0243 cond_syscall(sys_kcmp);
0244 
0245 /* operate on Secure Computing state */
0246 cond_syscall(sys_seccomp);
0247 
0248 /* access BPF programs and maps */
0249 cond_syscall(sys_bpf);
0250 
0251 /* execveat */
0252 cond_syscall(sys_execveat);
0253 
0254 /* membarrier */
0255 cond_syscall(sys_membarrier);
0256 
0257 /* memory protection keys */
0258 cond_syscall(sys_pkey_mprotect);
0259 cond_syscall(sys_pkey_alloc);
0260 cond_syscall(sys_pkey_free);