sys_ni.c 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. #include <linux/linkage.h>
  2. #include <linux/errno.h>
  3. #include <asm/unistd.h>
  4. /*
  5. * Non-implemented system calls get redirected here.
  6. */
  7. asmlinkage long sys_ni_syscall(void)
  8. {
  9. return -ENOSYS;
  10. }
  11. cond_syscall(sys_nfsservctl);
  12. cond_syscall(sys_quotactl);
  13. cond_syscall(sys_acct);
  14. cond_syscall(sys_lookup_dcookie);
  15. cond_syscall(sys_swapon);
  16. cond_syscall(sys_swapoff);
  17. cond_syscall(sys_kexec_load);
  18. cond_syscall(compat_sys_kexec_load);
  19. cond_syscall(sys_init_module);
  20. cond_syscall(sys_delete_module);
  21. cond_syscall(sys_socketpair);
  22. cond_syscall(sys_bind);
  23. cond_syscall(sys_listen);
  24. cond_syscall(sys_accept);
  25. cond_syscall(sys_connect);
  26. cond_syscall(sys_getsockname);
  27. cond_syscall(sys_getpeername);
  28. cond_syscall(sys_sendto);
  29. cond_syscall(sys_send);
  30. cond_syscall(sys_recvfrom);
  31. cond_syscall(sys_recv);
  32. cond_syscall(sys_socket);
  33. cond_syscall(sys_setsockopt);
  34. cond_syscall(sys_getsockopt);
  35. cond_syscall(sys_shutdown);
  36. cond_syscall(sys_sendmsg);
  37. cond_syscall(sys_recvmsg);
  38. cond_syscall(sys_socketcall);
  39. cond_syscall(sys_futex);
  40. cond_syscall(compat_sys_futex);
  41. cond_syscall(sys_set_robust_list);
  42. cond_syscall(compat_sys_set_robust_list);
  43. cond_syscall(sys_get_robust_list);
  44. cond_syscall(compat_sys_get_robust_list);
  45. cond_syscall(sys_epoll_create);
  46. cond_syscall(sys_epoll_ctl);
  47. cond_syscall(sys_epoll_wait);
  48. cond_syscall(sys_epoll_pwait);
  49. cond_syscall(sys_semget);
  50. cond_syscall(sys_semop);
  51. cond_syscall(sys_semtimedop);
  52. cond_syscall(sys_semctl);
  53. cond_syscall(sys_msgget);
  54. cond_syscall(sys_msgsnd);
  55. cond_syscall(sys_msgrcv);
  56. cond_syscall(sys_msgctl);
  57. cond_syscall(sys_shmget);
  58. cond_syscall(sys_shmat);
  59. cond_syscall(sys_shmdt);
  60. cond_syscall(sys_shmctl);
  61. cond_syscall(sys_mq_open);
  62. cond_syscall(sys_mq_unlink);
  63. cond_syscall(sys_mq_timedsend);
  64. cond_syscall(sys_mq_timedreceive);
  65. cond_syscall(sys_mq_notify);
  66. cond_syscall(sys_mq_getsetattr);
  67. cond_syscall(compat_sys_mq_open);
  68. cond_syscall(compat_sys_mq_timedsend);
  69. cond_syscall(compat_sys_mq_timedreceive);
  70. cond_syscall(compat_sys_mq_notify);
  71. cond_syscall(compat_sys_mq_getsetattr);
  72. cond_syscall(sys_mbind);
  73. cond_syscall(sys_get_mempolicy);
  74. cond_syscall(sys_set_mempolicy);
  75. cond_syscall(compat_sys_mbind);
  76. cond_syscall(compat_sys_get_mempolicy);
  77. cond_syscall(compat_sys_set_mempolicy);
  78. cond_syscall(sys_add_key);
  79. cond_syscall(sys_request_key);
  80. cond_syscall(sys_keyctl);
  81. cond_syscall(compat_sys_keyctl);
  82. cond_syscall(compat_sys_socketcall);
  83. cond_syscall(sys_inotify_init);
  84. cond_syscall(sys_inotify_add_watch);
  85. cond_syscall(sys_inotify_rm_watch);
  86. cond_syscall(sys_migrate_pages);
  87. cond_syscall(sys_move_pages);
  88. cond_syscall(sys_chown16);
  89. cond_syscall(sys_fchown16);
  90. cond_syscall(sys_getegid16);
  91. cond_syscall(sys_geteuid16);
  92. cond_syscall(sys_getgid16);
  93. cond_syscall(sys_getgroups16);
  94. cond_syscall(sys_getresgid16);
  95. cond_syscall(sys_getresuid16);
  96. cond_syscall(sys_getuid16);
  97. cond_syscall(sys_lchown16);
  98. cond_syscall(sys_setfsgid16);
  99. cond_syscall(sys_setfsuid16);
  100. cond_syscall(sys_setgid16);
  101. cond_syscall(sys_setgroups16);
  102. cond_syscall(sys_setregid16);
  103. cond_syscall(sys_setresgid16);
  104. cond_syscall(sys_setresuid16);
  105. cond_syscall(sys_setreuid16);
  106. cond_syscall(sys_setuid16);
  107. cond_syscall(sys_vm86old);
  108. cond_syscall(sys_vm86);
  109. cond_syscall(compat_sys_ipc);
  110. cond_syscall(compat_sys_sysctl);
  111. /* arch-specific weak syscall entries */
  112. cond_syscall(sys_pciconfig_read);
  113. cond_syscall(sys_pciconfig_write);
  114. cond_syscall(sys_pciconfig_iobase);
  115. cond_syscall(sys32_ipc);
  116. cond_syscall(sys32_sysctl);
  117. cond_syscall(ppc_rtas);
  118. cond_syscall(sys_spu_run);
  119. cond_syscall(sys_spu_create);
  120. /* mmu depending weak syscall entries */
  121. cond_syscall(sys_mprotect);
  122. cond_syscall(sys_msync);
  123. cond_syscall(sys_mlock);
  124. cond_syscall(sys_munlock);
  125. cond_syscall(sys_mlockall);
  126. cond_syscall(sys_munlockall);
  127. cond_syscall(sys_mincore);
  128. cond_syscall(sys_madvise);
  129. cond_syscall(sys_mremap);
  130. cond_syscall(sys_remap_file_pages);
  131. cond_syscall(compat_sys_move_pages);
  132. cond_syscall(compat_sys_migrate_pages);
  133. /* block-layer dependent */
  134. cond_syscall(sys_bdflush);
  135. cond_syscall(sys_ioprio_set);
  136. cond_syscall(sys_ioprio_get);