Blame view

kernel/sys_ni.c 5.03 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
  
  #include <linux/linkage.h>
  #include <linux/errno.h>
  
  #include <asm/unistd.h>
0732a552c   Adrian Bunk   kernel/sys_ni.c: ...
6
7
8
  /*  we can't #include <linux/syscalls.h> here,
      but tell gcc to not warn with -Wmissing-prototypes  */
  asmlinkage long sys_ni_syscall(void);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
10
11
12
13
14
15
16
17
18
  /*
   * Non-implemented system calls get redirected here.
   */
  asmlinkage long sys_ni_syscall(void)
  {
  	return -ENOSYS;
  }
  
  cond_syscall(sys_nfsservctl);
  cond_syscall(sys_quotactl);
b716395e2   Vasily Tarasov   diskquota: 32bit ...
19
  cond_syscall(sys32_quotactl);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
21
22
23
  cond_syscall(sys_acct);
  cond_syscall(sys_lookup_dcookie);
  cond_syscall(sys_swapon);
  cond_syscall(sys_swapoff);
dc009d924   Eric W. Biederman   [PATCH] kexec: ad...
24
25
  cond_syscall(sys_kexec_load);
  cond_syscall(compat_sys_kexec_load);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
26
27
28
29
30
31
  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);
de11defeb   Ulrich Drepper   reintroduce accept4
32
  cond_syscall(sys_accept4);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
33
34
35
36
37
38
39
40
41
  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);
f3baa4827   David S. Miller   [COMPAT]: Fix bui...
42
  cond_syscall(compat_sys_setsockopt);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
43
  cond_syscall(sys_getsockopt);
f3baa4827   David S. Miller   [COMPAT]: Fix bui...
44
  cond_syscall(compat_sys_getsockopt);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
45
46
  cond_syscall(sys_shutdown);
  cond_syscall(sys_sendmsg);
f3baa4827   David S. Miller   [COMPAT]: Fix bui...
47
  cond_syscall(compat_sys_sendmsg);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
48
  cond_syscall(sys_recvmsg);
f3baa4827   David S. Miller   [COMPAT]: Fix bui...
49
  cond_syscall(compat_sys_recvmsg);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
50
51
52
  cond_syscall(sys_socketcall);
  cond_syscall(sys_futex);
  cond_syscall(compat_sys_futex);
0771dfefc   Ingo Molnar   [PATCH] lightweig...
53
54
55
56
  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);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
57
  cond_syscall(sys_epoll_create);
5df439ef0   Wang Chen   flag parameters: ...
58
  cond_syscall(sys_epoll_create1);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
59
60
  cond_syscall(sys_epoll_ctl);
  cond_syscall(sys_epoll_wait);
39af11437   Randy Dunlap   [PATCH] fix epoll...
61
  cond_syscall(sys_epoll_pwait);
5f17156fc   Atsushi Nemoto   Fix build on COMP...
62
  cond_syscall(compat_sys_epoll_pwait);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
63
64
65
66
67
68
69
70
71
  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);
7d87e14c2   Stephen Rothwell   [PATCH] consolida...
72
  cond_syscall(sys_shmat);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
  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);
0eeca2830   Robert Love   [PATCH] inotify
97
  cond_syscall(sys_inotify_init);
4006553b0   Ulrich Drepper   flag parameters: ...
98
  cond_syscall(sys_inotify_init1);
0eeca2830   Robert Love   [PATCH] inotify
99
100
  cond_syscall(sys_inotify_add_watch);
  cond_syscall(sys_inotify_rm_watch);
39743889a   Christoph Lameter   [PATCH] Swap Migr...
101
  cond_syscall(sys_migrate_pages);
742755a1d   Christoph Lameter   [PATCH] page migr...
102
  cond_syscall(sys_move_pages);
e585e4703   Matt Mackall   [PATCH] tiny: Mak...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
  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);
64ca9004b   Matt Mackall   [PATCH] Make vm86...
122
123
  cond_syscall(sys_vm86old);
  cond_syscall(sys_vm86);
7fd105e75   Stephen Rothwell   [PATCH] Fix compi...
124
125
  cond_syscall(compat_sys_ipc);
  cond_syscall(compat_sys_sysctl);
bfcd17a6c   Thomas Petazzoni   Configure out fil...
126
  cond_syscall(sys_flock);
ebf3f09c6   Thomas Petazzoni   Configure out AIO...
127
128
129
130
131
  cond_syscall(sys_io_setup);
  cond_syscall(sys_io_destroy);
  cond_syscall(sys_io_submit);
  cond_syscall(sys_io_cancel);
  cond_syscall(sys_io_getevents);
f627a741d   Heiko Carstens   [CVE-2009-0029] M...
132
  cond_syscall(sys_syslog);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
133
134
135
136
137
138
139
140
  
  /* 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);
67207b966   Arnd Bergmann   [PATCH] spufs: Th...
141
142
  cond_syscall(sys_spu_run);
  cond_syscall(sys_spu_create);
fa28237cf   Paul Mackerras   [POWERPC] Provide...
143
  cond_syscall(sys_subpage_prot);
3016b4215   Hyok S. Choi   [PATCH] frv: defi...
144
145
146
147
148
149
150
151
152
153
154
155
  
  /* 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);
1b2db9fb7   Christoph Lameter   [PATCH] sys_move_...
156
  cond_syscall(compat_sys_move_pages);
3fd593979   Stephen Rothwell   [PATCH] Create co...
157
  cond_syscall(compat_sys_migrate_pages);
9361401eb   David Howells   [PATCH] BLOCK: Ma...
158
159
160
161
162
  
  /* block-layer dependent */
  cond_syscall(sys_bdflush);
  cond_syscall(sys_ioprio_set);
  cond_syscall(sys_ioprio_get);
fba2afaae   Davide Libenzi   signal/timer/even...
163
164
165
  
  /* New file descriptors */
  cond_syscall(sys_signalfd);
9deb27bae   Ulrich Drepper   flag parameters: ...
166
  cond_syscall(sys_signalfd4);
8df767dd7   Heiko Carstens   compat signalfd a...
167
  cond_syscall(compat_sys_signalfd);
9b8136163   Ingo Molnar   signalfd: fix und...
168
  cond_syscall(compat_sys_signalfd4);
4d672e7ac   Davide Libenzi   timerfd: new time...
169
170
171
172
173
  cond_syscall(sys_timerfd_create);
  cond_syscall(sys_timerfd_settime);
  cond_syscall(sys_timerfd_gettime);
  cond_syscall(compat_sys_timerfd_settime);
  cond_syscall(compat_sys_timerfd_gettime);
e1ad7468c   Davide Libenzi   signal/timer/even...
174
  cond_syscall(sys_eventfd);
b087498eb   Ulrich Drepper   flag parameters: ...
175
  cond_syscall(sys_eventfd2);
0793a61d4   Thomas Gleixner   performance count...
176
177
178
  
  /* performance counters: */
  cond_syscall(sys_perf_counter_open);