sys_ni.c 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. #include <linux/linkage.h>
  2. #include <linux/errno.h>
  3. #include <asm/unistd.h>
  4. /* we can't #include <linux/syscalls.h> here,
  5. but tell gcc to not warn with -Wmissing-prototypes */
  6. asmlinkage long sys_ni_syscall(void);
  7. /*
  8. * Non-implemented system calls get redirected here.
  9. */
  10. asmlinkage long sys_ni_syscall(void)
  11. {
  12. return -ENOSYS;
  13. }
  14. cond_syscall(sys_nfsservctl);
  15. cond_syscall(sys_quotactl);
  16. cond_syscall(sys32_quotactl);
  17. cond_syscall(sys_acct);
  18. cond_syscall(sys_lookup_dcookie);
  19. cond_syscall(sys_swapon);
  20. cond_syscall(sys_swapoff);
  21. cond_syscall(sys_kexec_load);
  22. cond_syscall(compat_sys_kexec_load);
  23. cond_syscall(sys_init_module);
  24. cond_syscall(sys_delete_module);
  25. cond_syscall(sys_socketpair);
  26. cond_syscall(sys_bind);
  27. cond_syscall(sys_listen);
  28. cond_syscall(sys_accept);
  29. cond_syscall(sys_accept4);
  30. cond_syscall(sys_connect);
  31. cond_syscall(sys_getsockname);
  32. cond_syscall(sys_getpeername);
  33. cond_syscall(sys_sendto);
  34. cond_syscall(sys_send);
  35. cond_syscall(sys_recvfrom);
  36. cond_syscall(sys_recv);
  37. cond_syscall(sys_socket);
  38. cond_syscall(sys_setsockopt);
  39. cond_syscall(compat_sys_setsockopt);
  40. cond_syscall(sys_getsockopt);
  41. cond_syscall(compat_sys_getsockopt);
  42. cond_syscall(sys_shutdown);
  43. cond_syscall(sys_sendmsg);
  44. cond_syscall(sys_sendmmsg);
  45. cond_syscall(compat_sys_sendmsg);
  46. cond_syscall(compat_sys_sendmmsg);
  47. cond_syscall(sys_recvmsg);
  48. cond_syscall(sys_recvmmsg);
  49. cond_syscall(compat_sys_recvmsg);
  50. cond_syscall(compat_sys_recv);
  51. cond_syscall(compat_sys_recvfrom);
  52. cond_syscall(compat_sys_recvmmsg);
  53. cond_syscall(sys_socketcall);
  54. cond_syscall(sys_futex);
  55. cond_syscall(compat_sys_futex);
  56. cond_syscall(sys_set_robust_list);
  57. cond_syscall(compat_sys_set_robust_list);
  58. cond_syscall(sys_get_robust_list);
  59. cond_syscall(compat_sys_get_robust_list);
  60. cond_syscall(sys_epoll_create);
  61. cond_syscall(sys_epoll_create1);
  62. cond_syscall(sys_epoll_ctl);
  63. cond_syscall(sys_epoll_wait);
  64. cond_syscall(sys_epoll_pwait);
  65. cond_syscall(compat_sys_epoll_pwait);
  66. cond_syscall(sys_semget);
  67. cond_syscall(sys_semop);
  68. cond_syscall(sys_semtimedop);
  69. cond_syscall(compat_sys_semtimedop);
  70. cond_syscall(sys_semctl);
  71. cond_syscall(compat_sys_semctl);
  72. cond_syscall(sys_msgget);
  73. cond_syscall(sys_msgsnd);
  74. cond_syscall(compat_sys_msgsnd);
  75. cond_syscall(sys_msgrcv);
  76. cond_syscall(compat_sys_msgrcv);
  77. cond_syscall(sys_msgctl);
  78. cond_syscall(compat_sys_msgctl);
  79. cond_syscall(sys_shmget);
  80. cond_syscall(sys_shmat);
  81. cond_syscall(compat_sys_shmat);
  82. cond_syscall(sys_shmdt);
  83. cond_syscall(sys_shmctl);
  84. cond_syscall(compat_sys_shmctl);
  85. cond_syscall(sys_mq_open);
  86. cond_syscall(sys_mq_unlink);
  87. cond_syscall(sys_mq_timedsend);
  88. cond_syscall(sys_mq_timedreceive);
  89. cond_syscall(sys_mq_notify);
  90. cond_syscall(sys_mq_getsetattr);
  91. cond_syscall(compat_sys_mq_open);
  92. cond_syscall(compat_sys_mq_timedsend);
  93. cond_syscall(compat_sys_mq_timedreceive);
  94. cond_syscall(compat_sys_mq_notify);
  95. cond_syscall(compat_sys_mq_getsetattr);
  96. cond_syscall(sys_mbind);
  97. cond_syscall(sys_get_mempolicy);
  98. cond_syscall(sys_set_mempolicy);
  99. cond_syscall(compat_sys_mbind);
  100. cond_syscall(compat_sys_get_mempolicy);
  101. cond_syscall(compat_sys_set_mempolicy);
  102. cond_syscall(sys_add_key);
  103. cond_syscall(sys_request_key);
  104. cond_syscall(sys_keyctl);
  105. cond_syscall(compat_sys_keyctl);
  106. cond_syscall(compat_sys_socketcall);
  107. cond_syscall(sys_inotify_init);
  108. cond_syscall(sys_inotify_init1);
  109. cond_syscall(sys_inotify_add_watch);
  110. cond_syscall(sys_inotify_rm_watch);
  111. cond_syscall(sys_migrate_pages);
  112. cond_syscall(sys_move_pages);
  113. cond_syscall(sys_chown16);
  114. cond_syscall(sys_fchown16);
  115. cond_syscall(sys_getegid16);
  116. cond_syscall(sys_geteuid16);
  117. cond_syscall(sys_getgid16);
  118. cond_syscall(sys_getgroups16);
  119. cond_syscall(sys_getresgid16);
  120. cond_syscall(sys_getresuid16);
  121. cond_syscall(sys_getuid16);
  122. cond_syscall(sys_lchown16);
  123. cond_syscall(sys_setfsgid16);
  124. cond_syscall(sys_setfsuid16);
  125. cond_syscall(sys_setgid16);
  126. cond_syscall(sys_setgroups16);
  127. cond_syscall(sys_setregid16);
  128. cond_syscall(sys_setresgid16);
  129. cond_syscall(sys_setresuid16);
  130. cond_syscall(sys_setreuid16);
  131. cond_syscall(sys_setuid16);
  132. cond_syscall(sys_vm86old);
  133. cond_syscall(sys_vm86);
  134. cond_syscall(sys_ipc);
  135. cond_syscall(compat_sys_ipc);
  136. cond_syscall(compat_sys_sysctl);
  137. cond_syscall(sys_flock);
  138. cond_syscall(sys_io_setup);
  139. cond_syscall(sys_io_destroy);
  140. cond_syscall(sys_io_submit);
  141. cond_syscall(sys_io_cancel);
  142. cond_syscall(sys_io_getevents);
  143. cond_syscall(sys_syslog);
  144. /* arch-specific weak syscall entries */
  145. cond_syscall(sys_pciconfig_read);
  146. cond_syscall(sys_pciconfig_write);
  147. cond_syscall(sys_pciconfig_iobase);
  148. cond_syscall(sys32_ipc);
  149. cond_syscall(ppc_rtas);
  150. cond_syscall(sys_spu_run);
  151. cond_syscall(sys_spu_create);
  152. cond_syscall(sys_subpage_prot);
  153. /* mmu depending weak syscall entries */
  154. cond_syscall(sys_mprotect);
  155. cond_syscall(sys_msync);
  156. cond_syscall(sys_mlock);
  157. cond_syscall(sys_munlock);
  158. cond_syscall(sys_mlockall);
  159. cond_syscall(sys_munlockall);
  160. cond_syscall(sys_mincore);
  161. cond_syscall(sys_madvise);
  162. cond_syscall(sys_mremap);
  163. cond_syscall(sys_remap_file_pages);
  164. cond_syscall(compat_sys_move_pages);
  165. cond_syscall(compat_sys_migrate_pages);
  166. /* block-layer dependent */
  167. cond_syscall(sys_bdflush);
  168. cond_syscall(sys_ioprio_set);
  169. cond_syscall(sys_ioprio_get);
  170. /* New file descriptors */
  171. cond_syscall(sys_signalfd);
  172. cond_syscall(sys_signalfd4);
  173. cond_syscall(compat_sys_signalfd);
  174. cond_syscall(compat_sys_signalfd4);
  175. cond_syscall(sys_timerfd_create);
  176. cond_syscall(sys_timerfd_settime);
  177. cond_syscall(sys_timerfd_gettime);
  178. cond_syscall(compat_sys_timerfd_settime);
  179. cond_syscall(compat_sys_timerfd_gettime);
  180. cond_syscall(sys_eventfd);
  181. cond_syscall(sys_eventfd2);
  182. /* performance counters: */
  183. cond_syscall(sys_perf_event_open);
  184. /* fanotify! */
  185. cond_syscall(sys_fanotify_init);
  186. cond_syscall(sys_fanotify_mark);
  187. /* open by handle */
  188. cond_syscall(sys_name_to_handle_at);
  189. cond_syscall(sys_open_by_handle_at);
  190. cond_syscall(compat_sys_open_by_handle_at);