linux/kernel/sys_ni.c
<<
>>
Prefs
   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_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(compat_sys_sendmsg);
  49cond_syscall(sys_recvmsg);
  50cond_syscall(compat_sys_recvmsg);
  51cond_syscall(sys_socketcall);
  52cond_syscall(sys_futex);
  53cond_syscall(compat_sys_futex);
  54cond_syscall(sys_set_robust_list);
  55cond_syscall(compat_sys_set_robust_list);
  56cond_syscall(sys_get_robust_list);
  57cond_syscall(compat_sys_get_robust_list);
  58cond_syscall(sys_epoll_create);
  59cond_syscall(sys_epoll_ctl);
  60cond_syscall(sys_epoll_wait);
  61cond_syscall(sys_epoll_pwait);
  62cond_syscall(sys_semget);
  63cond_syscall(sys_semop);
  64cond_syscall(sys_semtimedop);
  65cond_syscall(sys_semctl);
  66cond_syscall(sys_msgget);
  67cond_syscall(sys_msgsnd);
  68cond_syscall(sys_msgrcv);
  69cond_syscall(sys_msgctl);
  70cond_syscall(sys_shmget);
  71cond_syscall(sys_shmat);
  72cond_syscall(sys_shmdt);
  73cond_syscall(sys_shmctl);
  74cond_syscall(sys_mq_open);
  75cond_syscall(sys_mq_unlink);
  76cond_syscall(sys_mq_timedsend);
  77cond_syscall(sys_mq_timedreceive);
  78cond_syscall(sys_mq_notify);
  79cond_syscall(sys_mq_getsetattr);
  80cond_syscall(compat_sys_mq_open);
  81cond_syscall(compat_sys_mq_timedsend);
  82cond_syscall(compat_sys_mq_timedreceive);
  83cond_syscall(compat_sys_mq_notify);
  84cond_syscall(compat_sys_mq_getsetattr);
  85cond_syscall(sys_mbind);
  86cond_syscall(sys_get_mempolicy);
  87cond_syscall(sys_set_mempolicy);
  88cond_syscall(compat_sys_mbind);
  89cond_syscall(compat_sys_get_mempolicy);
  90cond_syscall(compat_sys_set_mempolicy);
  91cond_syscall(sys_add_key);
  92cond_syscall(sys_request_key);
  93cond_syscall(sys_keyctl);
  94cond_syscall(compat_sys_keyctl);
  95cond_syscall(compat_sys_socketcall);
  96cond_syscall(sys_inotify_init);
  97cond_syscall(sys_inotify_add_watch);
  98cond_syscall(sys_inotify_rm_watch);
  99cond_syscall(sys_migrate_pages);
 100cond_syscall(sys_move_pages);
 101cond_syscall(sys_chown16);
 102cond_syscall(sys_fchown16);
 103cond_syscall(sys_getegid16);
 104cond_syscall(sys_geteuid16);
 105cond_syscall(sys_getgid16);
 106cond_syscall(sys_getgroups16);
 107cond_syscall(sys_getresgid16);
 108cond_syscall(sys_getresuid16);
 109cond_syscall(sys_getuid16);
 110cond_syscall(sys_lchown16);
 111cond_syscall(sys_setfsgid16);
 112cond_syscall(sys_setfsuid16);
 113cond_syscall(sys_setgid16);
 114cond_syscall(sys_setgroups16);
 115cond_syscall(sys_setregid16);
 116cond_syscall(sys_setresgid16);
 117cond_syscall(sys_setresuid16);
 118cond_syscall(sys_setreuid16);
 119cond_syscall(sys_setuid16);
 120cond_syscall(sys_vm86old);
 121cond_syscall(sys_vm86);
 122cond_syscall(compat_sys_ipc);
 123cond_syscall(compat_sys_sysctl);
 124
 125/* arch-specific weak syscall entries */
 126cond_syscall(sys_pciconfig_read);
 127cond_syscall(sys_pciconfig_write);
 128cond_syscall(sys_pciconfig_iobase);
 129cond_syscall(sys32_ipc);
 130cond_syscall(sys32_sysctl);
 131cond_syscall(ppc_rtas);
 132cond_syscall(sys_spu_run);
 133cond_syscall(sys_spu_create);
 134
 135/* mmu depending weak syscall entries */
 136cond_syscall(sys_mprotect);
 137cond_syscall(sys_msync);
 138cond_syscall(sys_mlock);
 139cond_syscall(sys_munlock);
 140cond_syscall(sys_mlockall);
 141cond_syscall(sys_munlockall);
 142cond_syscall(sys_mincore);
 143cond_syscall(sys_madvise);
 144cond_syscall(sys_mremap);
 145cond_syscall(sys_remap_file_pages);
 146cond_syscall(compat_sys_move_pages);
 147cond_syscall(compat_sys_migrate_pages);
 148
 149/* block-layer dependent */
 150cond_syscall(sys_bdflush);
 151cond_syscall(sys_ioprio_set);
 152cond_syscall(sys_ioprio_get);
 153
 154/* New file descriptors */
 155cond_syscall(sys_signalfd);
 156cond_syscall(sys_timerfd);
 157cond_syscall(compat_sys_signalfd);
 158cond_syscall(compat_sys_timerfd);
 159cond_syscall(sys_eventfd);
 160