Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | |
| 2 | #include <linux/linkage.h> |
| 3 | #include <linux/errno.h> |
| 4 | |
| 5 | #include <asm/unistd.h> |
| 6 | |
| 7 | /* |
| 8 | * Non-implemented system calls get redirected here. |
| 9 | */ |
| 10 | asmlinkage long sys_ni_syscall(void) |
| 11 | { |
| 12 | return -ENOSYS; |
| 13 | } |
| 14 | |
| 15 | cond_syscall(sys_nfsservctl); |
| 16 | cond_syscall(sys_quotactl); |
| 17 | cond_syscall(sys_acct); |
| 18 | cond_syscall(sys_lookup_dcookie); |
| 19 | cond_syscall(sys_swapon); |
| 20 | cond_syscall(sys_swapoff); |
Eric W. Biederman | dc009d9 | 2005-06-25 14:57:52 -0700 | [diff] [blame] | 21 | cond_syscall(sys_kexec_load); |
| 22 | cond_syscall(compat_sys_kexec_load); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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_connect); |
| 30 | cond_syscall(sys_getsockname); |
| 31 | cond_syscall(sys_getpeername); |
| 32 | cond_syscall(sys_sendto); |
| 33 | cond_syscall(sys_send); |
| 34 | cond_syscall(sys_recvfrom); |
| 35 | cond_syscall(sys_recv); |
| 36 | cond_syscall(sys_socket); |
| 37 | cond_syscall(sys_setsockopt); |
| 38 | cond_syscall(sys_getsockopt); |
| 39 | cond_syscall(sys_shutdown); |
| 40 | cond_syscall(sys_sendmsg); |
| 41 | cond_syscall(sys_recvmsg); |
| 42 | cond_syscall(sys_socketcall); |
| 43 | cond_syscall(sys_futex); |
| 44 | cond_syscall(compat_sys_futex); |
Ingo Molnar | 0771dfe | 2006-03-27 01:16:22 -0800 | [diff] [blame] | 45 | cond_syscall(sys_set_robust_list); |
| 46 | cond_syscall(compat_sys_set_robust_list); |
| 47 | cond_syscall(sys_get_robust_list); |
| 48 | cond_syscall(compat_sys_get_robust_list); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | cond_syscall(sys_epoll_create); |
| 50 | cond_syscall(sys_epoll_ctl); |
| 51 | cond_syscall(sys_epoll_wait); |
| 52 | cond_syscall(sys_semget); |
| 53 | cond_syscall(sys_semop); |
| 54 | cond_syscall(sys_semtimedop); |
| 55 | cond_syscall(sys_semctl); |
| 56 | cond_syscall(sys_msgget); |
| 57 | cond_syscall(sys_msgsnd); |
| 58 | cond_syscall(sys_msgrcv); |
| 59 | cond_syscall(sys_msgctl); |
| 60 | cond_syscall(sys_shmget); |
Stephen Rothwell | 7d87e14 | 2005-05-01 08:59:12 -0700 | [diff] [blame] | 61 | cond_syscall(sys_shmat); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | cond_syscall(sys_shmdt); |
| 63 | cond_syscall(sys_shmctl); |
| 64 | cond_syscall(sys_mq_open); |
| 65 | cond_syscall(sys_mq_unlink); |
| 66 | cond_syscall(sys_mq_timedsend); |
| 67 | cond_syscall(sys_mq_timedreceive); |
| 68 | cond_syscall(sys_mq_notify); |
| 69 | cond_syscall(sys_mq_getsetattr); |
| 70 | cond_syscall(compat_sys_mq_open); |
| 71 | cond_syscall(compat_sys_mq_timedsend); |
| 72 | cond_syscall(compat_sys_mq_timedreceive); |
| 73 | cond_syscall(compat_sys_mq_notify); |
| 74 | cond_syscall(compat_sys_mq_getsetattr); |
| 75 | cond_syscall(sys_mbind); |
| 76 | cond_syscall(sys_get_mempolicy); |
| 77 | cond_syscall(sys_set_mempolicy); |
| 78 | cond_syscall(compat_sys_mbind); |
| 79 | cond_syscall(compat_sys_get_mempolicy); |
| 80 | cond_syscall(compat_sys_set_mempolicy); |
| 81 | cond_syscall(sys_add_key); |
| 82 | cond_syscall(sys_request_key); |
| 83 | cond_syscall(sys_keyctl); |
| 84 | cond_syscall(compat_sys_keyctl); |
| 85 | cond_syscall(compat_sys_socketcall); |
Robert Love | 0eeca28 | 2005-07-12 17:06:03 -0400 | [diff] [blame] | 86 | cond_syscall(sys_inotify_init); |
| 87 | cond_syscall(sys_inotify_add_watch); |
| 88 | cond_syscall(sys_inotify_rm_watch); |
Christoph Lameter | 3974388 | 2006-01-08 01:00:51 -0800 | [diff] [blame] | 89 | cond_syscall(sys_migrate_pages); |
Christoph Lameter | 742755a | 2006-06-23 02:03:55 -0700 | [diff] [blame] | 90 | cond_syscall(sys_move_pages); |
Matt Mackall | e585e47 | 2006-01-08 01:05:24 -0800 | [diff] [blame] | 91 | cond_syscall(sys_chown16); |
| 92 | cond_syscall(sys_fchown16); |
| 93 | cond_syscall(sys_getegid16); |
| 94 | cond_syscall(sys_geteuid16); |
| 95 | cond_syscall(sys_getgid16); |
| 96 | cond_syscall(sys_getgroups16); |
| 97 | cond_syscall(sys_getresgid16); |
| 98 | cond_syscall(sys_getresuid16); |
| 99 | cond_syscall(sys_getuid16); |
| 100 | cond_syscall(sys_lchown16); |
| 101 | cond_syscall(sys_setfsgid16); |
| 102 | cond_syscall(sys_setfsuid16); |
| 103 | cond_syscall(sys_setgid16); |
| 104 | cond_syscall(sys_setgroups16); |
| 105 | cond_syscall(sys_setregid16); |
| 106 | cond_syscall(sys_setresgid16); |
| 107 | cond_syscall(sys_setresuid16); |
| 108 | cond_syscall(sys_setreuid16); |
| 109 | cond_syscall(sys_setuid16); |
Matt Mackall | 64ca900 | 2006-01-08 01:05:26 -0800 | [diff] [blame] | 110 | cond_syscall(sys_vm86old); |
| 111 | cond_syscall(sys_vm86); |
Stephen Rothwell | 7fd105e | 2006-02-20 18:28:08 -0800 | [diff] [blame] | 112 | cond_syscall(compat_sys_ipc); |
| 113 | cond_syscall(compat_sys_sysctl); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | |
| 115 | /* arch-specific weak syscall entries */ |
| 116 | cond_syscall(sys_pciconfig_read); |
| 117 | cond_syscall(sys_pciconfig_write); |
| 118 | cond_syscall(sys_pciconfig_iobase); |
| 119 | cond_syscall(sys32_ipc); |
| 120 | cond_syscall(sys32_sysctl); |
| 121 | cond_syscall(ppc_rtas); |
Arnd Bergmann | 67207b9 | 2005-11-15 15:53:48 -0500 | [diff] [blame] | 122 | cond_syscall(sys_spu_run); |
| 123 | cond_syscall(sys_spu_create); |
Hyok S. Choi | 3016b42 | 2006-04-10 22:53:06 -0700 | [diff] [blame] | 124 | |
| 125 | /* mmu depending weak syscall entries */ |
| 126 | cond_syscall(sys_mprotect); |
| 127 | cond_syscall(sys_msync); |
| 128 | cond_syscall(sys_mlock); |
| 129 | cond_syscall(sys_munlock); |
| 130 | cond_syscall(sys_mlockall); |
| 131 | cond_syscall(sys_munlockall); |
| 132 | cond_syscall(sys_mincore); |
| 133 | cond_syscall(sys_madvise); |
| 134 | cond_syscall(sys_mremap); |
| 135 | cond_syscall(sys_remap_file_pages); |
Christoph Lameter | 1b2db9f | 2006-06-23 02:03:56 -0700 | [diff] [blame^] | 136 | cond_syscall(compat_sys_move_pages); |