sys_ni.c 4.4 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6

#include <linux/linkage.h>
#include <linux/errno.h>

#include <asm/unistd.h>

7 8 9 10
/*  we can't #include <linux/syscalls.h> here,
    but tell gcc to not warn with -Wmissing-prototypes  */
asmlinkage long sys_ni_syscall(void);

Linus Torvalds's avatar
Linus Torvalds committed
11 12 13 14 15 16 17 18 19 20
/*
 * Non-implemented system calls get redirected here.
 */
asmlinkage long sys_ni_syscall(void)
{
	return -ENOSYS;
}

cond_syscall(sys_nfsservctl);
cond_syscall(sys_quotactl);
21
cond_syscall(sys32_quotactl);
Linus Torvalds's avatar
Linus Torvalds committed
22 23 24 25
cond_syscall(sys_acct);
cond_syscall(sys_lookup_dcookie);
cond_syscall(sys_swapon);
cond_syscall(sys_swapoff);
26 27
cond_syscall(sys_kexec_load);
cond_syscall(compat_sys_kexec_load);
Linus Torvalds's avatar
Linus Torvalds committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
cond_syscall(sys_init_module);
cond_syscall(sys_delete_module);
cond_syscall(sys_socketpair);
cond_syscall(sys_bind);
cond_syscall(sys_listen);
cond_syscall(sys_accept);
cond_syscall(sys_connect);
cond_syscall(sys_getsockname);
cond_syscall(sys_getpeername);
cond_syscall(sys_sendto);
cond_syscall(sys_send);
cond_syscall(sys_recvfrom);
cond_syscall(sys_recv);
cond_syscall(sys_socket);
cond_syscall(sys_setsockopt);
43
cond_syscall(compat_sys_setsockopt);
Linus Torvalds's avatar
Linus Torvalds committed
44
cond_syscall(sys_getsockopt);
45
cond_syscall(compat_sys_getsockopt);
Linus Torvalds's avatar
Linus Torvalds committed
46 47
cond_syscall(sys_shutdown);
cond_syscall(sys_sendmsg);
48
cond_syscall(compat_sys_sendmsg);
Linus Torvalds's avatar
Linus Torvalds committed
49
cond_syscall(sys_recvmsg);
50
cond_syscall(compat_sys_recvmsg);
Linus Torvalds's avatar
Linus Torvalds committed
51 52 53
cond_syscall(sys_socketcall);
cond_syscall(sys_futex);
cond_syscall(compat_sys_futex);
54 55 56 57
cond_syscall(sys_set_robust_list);
cond_syscall(compat_sys_set_robust_list);
cond_syscall(sys_get_robust_list);
cond_syscall(compat_sys_get_robust_list);
Linus Torvalds's avatar
Linus Torvalds committed
58 59 60
cond_syscall(sys_epoll_create);
cond_syscall(sys_epoll_ctl);
cond_syscall(sys_epoll_wait);
61
cond_syscall(sys_epoll_pwait);
Linus Torvalds's avatar
Linus Torvalds committed
62 63 64 65 66 67 68 69 70
cond_syscall(sys_semget);
cond_syscall(sys_semop);
cond_syscall(sys_semtimedop);
cond_syscall(sys_semctl);
cond_syscall(sys_msgget);
cond_syscall(sys_msgsnd);
cond_syscall(sys_msgrcv);
cond_syscall(sys_msgctl);
cond_syscall(sys_shmget);
71
cond_syscall(sys_shmat);
Linus Torvalds's avatar
Linus Torvalds committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
cond_syscall(sys_shmdt);
cond_syscall(sys_shmctl);
cond_syscall(sys_mq_open);
cond_syscall(sys_mq_unlink);
cond_syscall(sys_mq_timedsend);
cond_syscall(sys_mq_timedreceive);
cond_syscall(sys_mq_notify);
cond_syscall(sys_mq_getsetattr);
cond_syscall(compat_sys_mq_open);
cond_syscall(compat_sys_mq_timedsend);
cond_syscall(compat_sys_mq_timedreceive);
cond_syscall(compat_sys_mq_notify);
cond_syscall(compat_sys_mq_getsetattr);
cond_syscall(sys_mbind);
cond_syscall(sys_get_mempolicy);
cond_syscall(sys_set_mempolicy);
cond_syscall(compat_sys_mbind);
cond_syscall(compat_sys_get_mempolicy);
cond_syscall(compat_sys_set_mempolicy);
cond_syscall(sys_add_key);
cond_syscall(sys_request_key);
cond_syscall(sys_keyctl);
cond_syscall(compat_sys_keyctl);
cond_syscall(compat_sys_socketcall);
Robert Love's avatar
Robert Love committed
96 97 98
cond_syscall(sys_inotify_init);
cond_syscall(sys_inotify_add_watch);
cond_syscall(sys_inotify_rm_watch);
99
cond_syscall(sys_migrate_pages);
100
cond_syscall(sys_move_pages);
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
cond_syscall(sys_chown16);
cond_syscall(sys_fchown16);
cond_syscall(sys_getegid16);
cond_syscall(sys_geteuid16);
cond_syscall(sys_getgid16);
cond_syscall(sys_getgroups16);
cond_syscall(sys_getresgid16);
cond_syscall(sys_getresuid16);
cond_syscall(sys_getuid16);
cond_syscall(sys_lchown16);
cond_syscall(sys_setfsgid16);
cond_syscall(sys_setfsuid16);
cond_syscall(sys_setgid16);
cond_syscall(sys_setgroups16);
cond_syscall(sys_setregid16);
cond_syscall(sys_setresgid16);
cond_syscall(sys_setresuid16);
cond_syscall(sys_setreuid16);
cond_syscall(sys_setuid16);
120 121
cond_syscall(sys_vm86old);
cond_syscall(sys_vm86);
122 123
cond_syscall(compat_sys_ipc);
cond_syscall(compat_sys_sysctl);
Linus Torvalds's avatar
Linus Torvalds committed
124 125 126 127 128 129 130 131

/* arch-specific weak syscall entries */
cond_syscall(sys_pciconfig_read);
cond_syscall(sys_pciconfig_write);
cond_syscall(sys_pciconfig_iobase);
cond_syscall(sys32_ipc);
cond_syscall(sys32_sysctl);
cond_syscall(ppc_rtas);
132 133
cond_syscall(sys_spu_run);
cond_syscall(sys_spu_create);
134 135 136 137 138 139 140 141 142 143 144 145

/* mmu depending weak syscall entries */
cond_syscall(sys_mprotect);
cond_syscall(sys_msync);
cond_syscall(sys_mlock);
cond_syscall(sys_munlock);
cond_syscall(sys_mlockall);
cond_syscall(sys_munlockall);
cond_syscall(sys_mincore);
cond_syscall(sys_madvise);
cond_syscall(sys_mremap);
cond_syscall(sys_remap_file_pages);
146
cond_syscall(compat_sys_move_pages);
147
cond_syscall(compat_sys_migrate_pages);
148 149 150 151 152

/* block-layer dependent */
cond_syscall(sys_bdflush);
cond_syscall(sys_ioprio_set);
cond_syscall(sys_ioprio_get);
153 154 155

/* New file descriptors */
cond_syscall(sys_signalfd);
156
cond_syscall(sys_timerfd);
157 158
cond_syscall(compat_sys_signalfd);
cond_syscall(compat_sys_timerfd);
159
cond_syscall(sys_eventfd);