Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl> |
| 3 | * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com> |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * 2. Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in the |
| 13 | * documentation and/or other materials provided with the distribution. |
| 14 | * 3. The name of the author may not be used to endorse or promote products |
| 15 | * derived from this software without specific prior written permission. |
| 16 | * |
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | * |
| 28 | * $Id$ |
| 29 | */ |
| 30 | |
| 31 | #include "dummy.h" |
| 32 | |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 33 | /* common syscalls */ |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 34 | |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 35 | int sys_accept(); |
| 36 | int sys_accept4(); |
| 37 | int sys_access(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 38 | int sys_adjtimex(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 39 | int sys_arch_prctl(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 40 | int sys_bind(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 41 | int sys_brk(); |
| 42 | int sys_capget(); |
| 43 | int sys_capset(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 44 | int sys_chdir(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 45 | int sys_chmod(); |
| 46 | int sys_chown(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 47 | int sys_clock_gettime(); |
| 48 | int sys_clock_nanosleep(); |
| 49 | int sys_clock_settime(); |
| 50 | int sys_clone(); |
| 51 | int sys_close(); |
| 52 | int sys_connect(); |
| 53 | int sys_creat(); |
| 54 | int sys_create_module(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 55 | int sys_dup2(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 56 | int sys_dup3(); |
| 57 | int sys_epoll_create(); |
| 58 | int sys_epoll_create1(); |
| 59 | int sys_epoll_ctl(); |
| 60 | int sys_epoll_pwait(); |
| 61 | int sys_epoll_wait(); |
| 62 | int sys_eventfd(); |
| 63 | int sys_eventfd2(); |
| 64 | int sys_execve(); |
| 65 | int sys_exit(); |
| 66 | int sys_faccessat(); |
| 67 | int sys_fadvise64(); |
| 68 | int sys_fadvise64_64(); |
| 69 | int sys_fallocate(); |
| 70 | int sys_fchmod(); |
| 71 | int sys_fchmodat(); |
| 72 | int sys_fchown(); |
| 73 | int sys_fchownat(); |
| 74 | int sys_fcntl(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 75 | int sys_fgetxattr(); |
| 76 | int sys_flistxattr(); |
| 77 | int sys_flock(); |
| 78 | int sys_fork(); |
| 79 | int sys_fremovexattr(); |
| 80 | int sys_fsetxattr(); |
| 81 | int sys_fstat(); |
| 82 | int sys_fstat64(); |
| 83 | int sys_fstatfs(); |
| 84 | int sys_fstatfs64(); |
| 85 | int sys_fsync(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 86 | int sys_ftruncate(); |
| 87 | int sys_ftruncate64(); |
| 88 | int sys_futex(); |
| 89 | int sys_futimesat(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 90 | int sys_get_mempolicy(); |
| 91 | int sys_get_thread_area(); |
| 92 | int sys_getcpu(); |
| 93 | int sys_getcwd(); |
| 94 | int sys_getdents(); |
| 95 | int sys_getdents64(); |
| 96 | int sys_getdtablesize(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 97 | int sys_getgroups(); |
| 98 | int sys_getgroups32(); |
| 99 | int sys_gethostname(); |
| 100 | int sys_getitimer(); |
| 101 | int sys_getpeername(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 102 | int sys_getpmsg(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 103 | int sys_getpriority(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 104 | int sys_getresuid(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 105 | int sys_getrlimit(); |
| 106 | int sys_getrusage(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 107 | int sys_getsockname(); |
| 108 | int sys_getsockopt(); |
| 109 | int sys_gettimeofday(); |
| 110 | int sys_getuid(); |
| 111 | int sys_getxattr(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 112 | int sys_init_module(); |
| 113 | int sys_inotify_add_watch(); |
| 114 | int sys_inotify_init1(); |
| 115 | int sys_inotify_rm_watch(); |
| 116 | int sys_io_cancel(); |
| 117 | int sys_io_destroy(); |
| 118 | int sys_io_getevents(); |
| 119 | int sys_io_setup(); |
| 120 | int sys_io_submit(); |
| 121 | int sys_ioctl(); |
Dmitry V. Levin | b5e88d4 | 2012-02-20 17:02:38 +0000 | [diff] [blame] | 122 | int sys_ipc(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 123 | int sys_kill(); |
| 124 | int sys_link(); |
| 125 | int sys_linkat(); |
| 126 | int sys_listen(); |
| 127 | int sys_listxattr(); |
| 128 | int sys_llseek(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 129 | int sys_lseek(); |
| 130 | int sys_lstat(); |
| 131 | int sys_lstat64(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 132 | int sys_madvise(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 133 | int sys_mbind(); |
| 134 | int sys_mincore(); |
| 135 | int sys_mkdir(); |
| 136 | int sys_mkdirat(); |
| 137 | int sys_mknod(); |
| 138 | int sys_mknodat(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 139 | int sys_mlockall(); |
| 140 | int sys_mmap(); |
| 141 | int sys_modify_ldt(); |
| 142 | int sys_mount(); |
| 143 | int sys_move_pages(); |
| 144 | int sys_mprotect(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 145 | int sys_mq_getsetattr(); |
| 146 | int sys_mq_notify(); |
| 147 | int sys_mq_open(); |
| 148 | int sys_mq_timedreceive(); |
| 149 | int sys_mq_timedsend(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 150 | int sys_mremap(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 151 | int sys_msgctl(); |
| 152 | int sys_msgget(); |
| 153 | int sys_msgrcv(); |
| 154 | int sys_msgsnd(); |
| 155 | int sys_msync(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 156 | int sys_munmap(); |
| 157 | int sys_nanosleep(); |
| 158 | int sys_newfstatat(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 159 | int sys_old_mmap(); |
| 160 | int sys_oldfstat(); |
| 161 | int sys_oldlstat(); |
| 162 | int sys_oldselect(); |
| 163 | int sys_oldstat(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 164 | int sys_open(); |
| 165 | int sys_openat(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 166 | int sys_personality(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 167 | int sys_pipe(); |
| 168 | int sys_pipe2(); |
| 169 | int sys_poll(); |
| 170 | int sys_poll(); |
| 171 | int sys_ppoll(); |
| 172 | int sys_prctl(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 173 | int sys_pread(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 174 | int sys_preadv(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 175 | int sys_pselect6(); |
| 176 | int sys_ptrace(); |
Denys Vlasenko | 3af224c | 2012-01-28 01:46:33 +0100 | [diff] [blame] | 177 | int sys_process_vm_readv(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 178 | int sys_putpmsg(); |
| 179 | int sys_pwrite(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 180 | int sys_pwritev(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 181 | int sys_query_module(); |
| 182 | int sys_quotactl(); |
| 183 | int sys_read(); |
| 184 | int sys_readahead(); |
| 185 | int sys_readdir(); |
| 186 | int sys_readlink(); |
| 187 | int sys_readlinkat(); |
| 188 | int sys_readv(); |
| 189 | int sys_reboot(); |
| 190 | int sys_recv(); |
| 191 | int sys_recvfrom(); |
| 192 | int sys_recvmmsg(); |
| 193 | int sys_recvmsg(); |
| 194 | int sys_remap_file_pages(); |
| 195 | int sys_removexattr(); |
| 196 | int sys_renameat(); |
| 197 | int sys_restart_syscall(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 198 | int sys_rt_sigaction(); |
| 199 | int sys_rt_sigpending(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 200 | int sys_rt_sigprocmask(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 201 | int sys_rt_sigqueueinfo(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 202 | int sys_rt_sigsuspend(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 203 | int sys_rt_sigtimedwait(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 204 | int sys_sched_get_priority_min(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 205 | int sys_sched_getaffinity(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 206 | int sys_sched_getparam(); |
| 207 | int sys_sched_getscheduler(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 208 | int sys_sched_setaffinity(); |
| 209 | int sys_sched_setparam(); |
| 210 | int sys_sched_setscheduler(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 211 | int sys_select(); |
| 212 | int sys_semctl(); |
| 213 | int sys_semget(); |
| 214 | int sys_semop(); |
| 215 | int sys_semtimedop(); |
| 216 | int sys_send(); |
| 217 | int sys_sendfile(); |
| 218 | int sys_sendfile64(); |
| 219 | int sys_sendmsg(); |
| 220 | int sys_sendto(); |
| 221 | int sys_set_mempolicy(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 222 | int sys_set_thread_area(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 223 | int sys_setdomainname(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 224 | int sys_setfsuid(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 225 | int sys_setgroups(); |
| 226 | int sys_setgroups32(); |
| 227 | int sys_sethostname(); |
| 228 | int sys_setitimer(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 229 | int sys_setpriority(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 230 | int sys_setresuid(); |
| 231 | int sys_setreuid(); |
| 232 | int sys_setrlimit(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 233 | int sys_setsockopt(); |
| 234 | int sys_settimeofday(); |
| 235 | int sys_setuid(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 236 | int sys_setxattr(); |
| 237 | int sys_shmat(); |
| 238 | int sys_shmctl(); |
| 239 | int sys_shmdt(); |
| 240 | int sys_shmget(); |
| 241 | int sys_shutdown(); |
| 242 | int sys_sigaction(); |
| 243 | int sys_sigaltstack(); |
| 244 | int sys_siggetmask(); |
| 245 | int sys_signal(); |
| 246 | int sys_signalfd(); |
| 247 | int sys_signalfd4(); |
| 248 | int sys_sigpending(); |
| 249 | int sys_sigprocmask(); |
| 250 | int sys_sigreturn(); |
| 251 | int sys_sigsetmask(); |
| 252 | int sys_sigsuspend(); |
| 253 | int sys_socket(); |
Dmitry V. Levin | b5e88d4 | 2012-02-20 17:02:38 +0000 | [diff] [blame] | 254 | int sys_socketcall(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 255 | int sys_socketpair(); |
| 256 | int sys_splice(); |
| 257 | int sys_stat(); |
| 258 | int sys_stat64(); |
| 259 | int sys_statfs(); |
| 260 | int sys_statfs64(); |
| 261 | int sys_stime(); |
Dmitry V. Levin | 8829365 | 2012-03-09 21:02:19 +0000 | [diff] [blame^] | 262 | int sys_swapon(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 263 | int sys_symlinkat(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 264 | int sys_sysctl(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 265 | int sys_sysinfo(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 266 | int sys_tee(); |
| 267 | int sys_tgkill(); |
| 268 | int sys_time(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 269 | int sys_timer_create(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 270 | int sys_timer_gettime(); |
| 271 | int sys_timer_settime(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 272 | int sys_timerfd(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 273 | int sys_timerfd_create(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 274 | int sys_timerfd_gettime(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 275 | int sys_timerfd_settime(); |
| 276 | int sys_times(); |
| 277 | int sys_truncate(); |
| 278 | int sys_truncate64(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 279 | int sys_umask(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 280 | int sys_umount2(); |
| 281 | int sys_uname(); |
Dmitry V. Levin | 95ebf5a | 2006-10-13 20:25:12 +0000 | [diff] [blame] | 282 | int sys_unlinkat(); |
Dmitry V. Levin | 95ebf5a | 2006-10-13 20:25:12 +0000 | [diff] [blame] | 283 | int sys_unshare(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 284 | int sys_utime(); |
| 285 | int sys_utimensat(); |
| 286 | int sys_utimes(); |
| 287 | int sys_vfork(); |
Dmitry V. Levin | d99e48c | 2011-10-11 17:07:05 +0000 | [diff] [blame] | 288 | int sys_vmsplice(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 289 | int sys_wait4(); |
| 290 | int sys_waitid(); |
| 291 | int sys_waitpid(); |
| 292 | int sys_write(); |
| 293 | int sys_writev(); |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 294 | |
Wichert Akkerman | 0ae852b | 1999-11-18 17:12:55 +0000 | [diff] [blame] | 295 | /* architecture-specific calls */ |
| 296 | #ifdef ALPHA |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 297 | int osf_statfs(); |
| 298 | int osf_fstatfs(); |
Wichert Akkerman | 221f54f | 1999-11-18 17:26:45 +0000 | [diff] [blame] | 299 | int sys_osf_getitimer(); |
Wichert Akkerman | 221f54f | 1999-11-18 17:26:45 +0000 | [diff] [blame] | 300 | int sys_osf_getrusage(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 301 | int sys_osf_gettimeofday(); |
| 302 | int sys_osf_select(); |
| 303 | int sys_osf_setitimer(); |
| 304 | int sys_osf_settimeofday(); |
Wichert Akkerman | 221f54f | 1999-11-18 17:26:45 +0000 | [diff] [blame] | 305 | int sys_osf_utimes(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 306 | int sys_osf_wait4(); |
Wichert Akkerman | 0ae852b | 1999-11-18 17:12:55 +0000 | [diff] [blame] | 307 | #endif |
| 308 | |
Roland McGrath | d94020f | 2008-08-25 03:15:43 +0000 | [diff] [blame] | 309 | #if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && \ |
| 310 | !defined(__ARM_EABI__) |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 311 | # if defined(SPARC) || defined(SPARC64) |
| 312 | # define SYS_socket_subcall 353 |
| 313 | # else |
Roland McGrath | feb8381 | 2006-08-22 06:06:12 +0000 | [diff] [blame] | 314 | # define SYS_socket_subcall 400 |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 315 | # endif |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 316 | |
Andreas Schwab | 0873f29 | 2010-02-12 21:39:12 +0100 | [diff] [blame] | 317 | #define SYS_socket_nsubcalls 20 |
Roland McGrath | e69b627 | 2005-06-07 23:21:28 +0000 | [diff] [blame] | 318 | #endif /* !(ALPHA || MIPS || HPPA) */ |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 319 | |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 320 | #if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && \ |
Roland McGrath | d94020f | 2008-08-25 03:15:43 +0000 | [diff] [blame] | 321 | !defined(__ARM_EABI__) |
Roland McGrath | 2c71e0d | 2002-12-15 23:58:19 +0000 | [diff] [blame] | 322 | #define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls)) |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 323 | #define SYS_ipc_nsubcalls 25 |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 324 | #endif /* !(ALPHA || MIPS || HPPA) */ |
Roland McGrath | e69b627 | 2005-06-07 23:21:28 +0000 | [diff] [blame] | 325 | |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 326 | #if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64) |
Wichert Akkerman | 8b1b40c | 2000-02-03 21:58:30 +0000 | [diff] [blame] | 327 | int sys_getpagesize(); |
| 328 | #endif |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 329 | |
Wichert Akkerman | 8b1b40c | 2000-02-03 21:58:30 +0000 | [diff] [blame] | 330 | #ifdef IA64 |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 331 | /* STREAMS stuff */ |
| 332 | int sys_getpmsg(); |
| 333 | int sys_putpmsg(); |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 334 | #endif |
| 335 | |
Wichert Akkerman | 0cbfb32 | 2001-02-19 13:35:53 +0000 | [diff] [blame] | 336 | #ifdef MIPS |
Wichert Akkerman | d6b9249 | 2001-04-07 21:37:12 +0000 | [diff] [blame] | 337 | int sys_sysmips(); |
Wichert Akkerman | 0cbfb32 | 2001-02-19 13:35:53 +0000 | [diff] [blame] | 338 | #endif |
| 339 | |
Carmelo AMOROSO | f8e5650 | 2010-12-01 14:27:07 +0100 | [diff] [blame] | 340 | #if defined M68K || defined SH |
Wichert Akkerman | 2e2553a | 1999-05-09 00:29:58 +0000 | [diff] [blame] | 341 | int sys_cacheflush(); |
| 342 | #endif |
Roland McGrath | 542c2c6 | 2008-05-20 01:11:56 +0000 | [diff] [blame] | 343 | |
Roland McGrath | 4a6f652 | 2008-08-25 03:09:16 +0000 | [diff] [blame] | 344 | #ifdef POWERPC |
| 345 | int sys_subpage_prot(); |
| 346 | #endif |
Dmitry V. Levin | 87ea1f4 | 2008-11-10 22:21:41 +0000 | [diff] [blame] | 347 | |
| 348 | #ifdef BFIN |
Mike Frysinger | 260e571 | 2010-09-11 15:04:18 -0400 | [diff] [blame] | 349 | int sys_cacheflush(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 350 | int sys_sram_alloc(); |
Dmitry V. Levin | 87ea1f4 | 2008-11-10 22:21:41 +0000 | [diff] [blame] | 351 | #endif |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 352 | |
| 353 | #if defined SPARC || defined SPARC64 |
| 354 | #include "sparc/syscall1.h" |
| 355 | int sys_execv(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 356 | int sys_getmsg(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 357 | int sys_msgsys(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 358 | int sys_putmsg(); |
Dmitry V. Levin | dd76085 | 2011-11-28 23:25:13 +0000 | [diff] [blame] | 359 | int sys_semsys(); |
Dmitry V. Levin | a12c70d | 2011-11-28 23:41:58 +0000 | [diff] [blame] | 360 | int sys_shmsys(); |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 361 | #define SYS_semsys_subcall 200 |
| 362 | #define SYS_semsys_nsubcalls 3 |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 363 | #define SYS_msgsys_subcall 203 |
| 364 | #define SYS_msgsys_nsubcalls 4 |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 365 | #define SYS_shmsys_subcall 207 |
| 366 | #define SYS_shmsys_nsubcalls 4 |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 367 | #endif |