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 29#include "dummy.h" 30 31/* common syscalls */ 32 33int sys_accept(); 34int sys_accept4(); 35int sys_access(); 36int sys_add_key(); 37int sys_adjtimex(); 38int sys_arch_prctl(); 39int sys_bind(); 40int sys_brk(); 41int sys_capget(); 42int sys_capset(); 43int sys_chdir(); 44int sys_chmod(); 45int sys_chown(); 46int sys_clock_adjtime(); 47int sys_clock_gettime(); 48int sys_clock_nanosleep(); 49int sys_clock_settime(); 50int sys_clone(); 51int sys_close(); 52int sys_connect(); 53int sys_creat(); 54int sys_create_module(); 55int sys_delete_module(); 56int sys_dup(); 57int sys_dup2(); 58int sys_dup3(); 59int sys_epoll_create(); 60int sys_epoll_create1(); 61int sys_epoll_ctl(); 62int sys_epoll_pwait(); 63int sys_epoll_wait(); 64int sys_eventfd(); 65int sys_eventfd2(); 66int sys_execve(); 67int sys_exit(); 68int sys_faccessat(); 69int sys_fadvise64(); 70int sys_fadvise64_64(); 71int sys_fallocate(); 72int sys_fanotify_init(); 73int sys_fanotify_mark(); 74int sys_fchmod(); 75int sys_fchmodat(); 76int sys_fchown(); 77int sys_fchownat(); 78int sys_fcntl(); 79int sys_fgetxattr(); 80int sys_finit_module(); 81int sys_flistxattr(); 82int sys_flock(); 83int sys_fork(); 84int sys_fremovexattr(); 85int sys_fsetxattr(); 86int sys_fstat(); 87int sys_fstat64(); 88int sys_fstatfs(); 89int sys_fstatfs64(); 90int sys_ftruncate(); 91int sys_ftruncate64(); 92int sys_futex(); 93int sys_futimesat(); 94int sys_get_mempolicy(); 95int sys_get_robust_list(); 96int sys_get_thread_area(); 97int sys_getcpu(); 98int sys_getcwd(); 99int sys_getdents(); 100int sys_getdents64(); 101int sys_getdtablesize(); 102int sys_getgroups(); 103int sys_getgroups32(); 104int sys_gethostname(); 105int sys_getitimer(); 106int sys_getpeername(); 107int sys_getpmsg(); /* TODO: non-Linux, remove? */ 108int sys_getpriority(); 109int sys_getresuid(); 110int sys_getrlimit(); 111int sys_getrusage(); 112int sys_getsockname(); 113int sys_getsockopt(); 114int sys_gettimeofday(); 115int sys_getuid(); 116int sys_getxattr(); 117int sys_init_module(); 118int sys_inotify_add_watch(); 119int sys_inotify_init1(); 120int sys_inotify_rm_watch(); 121int sys_io_cancel(); 122int sys_io_destroy(); 123int sys_io_getevents(); 124int sys_io_setup(); 125int sys_io_submit(); 126int sys_ioctl(); 127int sys_ioprio_get(); 128int sys_ioprio_set(); 129int sys_ipc(); 130int sys_keyctl(); 131int sys_kexec_load(); 132int sys_kill(); 133int sys_link(); 134int sys_linkat(); 135int sys_listen(); 136int sys_listxattr(); 137int sys_llseek(); 138int sys_lseek(); 139int sys_madvise(); 140int sys_mbind(); 141int sys_migrate_pages(); 142int sys_mincore(); 143int sys_mkdir(); 144int sys_mkdirat(); 145int sys_mknod(); 146int sys_mknodat(); 147int sys_mlockall(); 148int sys_mmap(); 149int sys_mmap_pgoff(); 150int sys_mmap_4koff(); 151int sys_modify_ldt(); 152int sys_mount(); 153int sys_move_pages(); 154int sys_mprotect(); 155int sys_mq_getsetattr(); 156int sys_mq_notify(); 157int sys_mq_open(); 158int sys_mq_timedreceive(); 159int sys_mq_timedsend(); 160int sys_mremap(); 161int sys_msgctl(); 162int sys_msgget(); 163int sys_msgrcv(); 164int sys_msgsnd(); 165int sys_msync(); 166int sys_munmap(); 167int sys_nanosleep(); 168int sys_newfstatat(); 169int sys_old_mmap(); 170int sys_old_mmap_pgoff(); 171int sys_oldfstat(); 172int sys_oldselect(); 173int sys_oldstat(); 174int sys_open(); 175int sys_openat(); 176int sys_perf_event_open(); 177int sys_personality(); 178int sys_pipe(); 179int sys_pipe2(); 180int sys_poll(); 181int sys_poll(); 182int sys_ppoll(); 183int sys_prctl(); 184int sys_pread(); 185int sys_preadv(); 186int sys_prlimit64(); 187int sys_process_vm_readv(); 188int sys_process_vm_writev(); 189int sys_pselect6(); 190int sys_ptrace(); 191int sys_putpmsg(); /* TODO: non-Linux, remove? */ 192int sys_pwrite(); 193int sys_pwritev(); 194int sys_query_module(); 195int sys_quotactl(); 196int sys_read(); 197int sys_readahead(); 198int sys_readdir(); 199int sys_readlink(); 200int sys_readlinkat(); 201int sys_readv(); 202int sys_reboot(); 203int sys_recv(); 204int sys_recvfrom(); 205int sys_recvmmsg(); 206int sys_recvmsg(); 207int sys_remap_file_pages(); 208int sys_removexattr(); 209int sys_renameat(); 210int sys_request_key(); 211int sys_restart_syscall(); 212int sys_rt_sigaction(); 213int sys_rt_sigpending(); 214int sys_rt_sigprocmask(); 215int sys_rt_sigqueueinfo(); 216int sys_rt_sigsuspend(); 217int sys_rt_sigtimedwait(); 218int sys_rt_tgsigqueueinfo(); 219int sys_sched_get_priority_min(); 220int sys_sched_getaffinity(); 221int sys_sched_getparam(); 222int sys_sched_getscheduler(); 223int sys_sched_rr_get_interval(); 224int sys_sched_setaffinity(); 225int sys_sched_setparam(); 226int sys_sched_setscheduler(); 227int sys_select(); 228int sys_semctl(); 229int sys_semget(); 230int sys_semop(); 231int sys_semtimedop(); 232int sys_send(); 233int sys_sendfile(); 234int sys_sendfile64(); 235int sys_sendmmsg(); 236int sys_sendmsg(); 237int sys_sendto(); 238int sys_set_mempolicy(); 239int sys_set_thread_area(); 240int sys_setdomainname(); 241int sys_setfsuid(); 242int sys_setgroups(); 243int sys_setgroups32(); 244int sys_sethostname(); 245int sys_setitimer(); 246int sys_setns(); 247int sys_setpriority(); 248int sys_setresuid(); 249int sys_setreuid(); 250int sys_setrlimit(); 251int sys_setsockopt(); 252int sys_settimeofday(); 253int sys_setuid(); 254int sys_setxattr(); 255int sys_shmat(); 256int sys_shmctl(); 257int sys_shmdt(); 258int sys_shmget(); 259int sys_shutdown(); 260int sys_sigaction(); 261int sys_sigaltstack(); 262int sys_siggetmask(); 263int sys_signal(); 264int sys_signalfd(); 265int sys_signalfd4(); 266int sys_sigpending(); 267int sys_sigprocmask(); 268int sys_sigreturn(); 269int sys_sigsetmask(); 270int sys_sigsuspend(); 271int sys_socket(); 272int sys_socketcall(); 273int sys_socketpair(); 274int sys_splice(); 275int sys_stat(); 276int sys_stat64(); 277int sys_statfs(); 278int sys_statfs64(); 279int sys_stime(); 280int sys_swapon(); 281int sys_symlinkat(); 282int sys_sync_file_range(); 283int sys_sync_file_range2(); 284int sys_sysctl(); 285int sys_sysinfo(); 286int sys_syslog(); 287int sys_tee(); 288int sys_tgkill(); 289int sys_time(); 290int sys_timer_create(); 291int sys_timer_gettime(); 292int sys_timer_settime(); 293int sys_timerfd(); 294int sys_timerfd_create(); 295int sys_timerfd_gettime(); 296int sys_timerfd_settime(); 297int sys_times(); 298int sys_truncate(); 299int sys_truncate64(); 300int sys_umask(); 301int sys_umount2(); 302int sys_uname(); 303int sys_unlinkat(); 304int sys_unshare(); 305int sys_utime(); 306int sys_utimensat(); 307int sys_utimes(); 308int sys_vmsplice(); 309int sys_wait4(); 310int sys_waitid(); 311int sys_waitpid(); 312int sys_write(); 313int sys_writev(); 314 315/* architecture-specific calls */ 316#ifdef ALPHA 317int osf_statfs(); 318int osf_fstatfs(); 319int sys_osf_getitimer(); 320int sys_osf_getrusage(); 321int sys_osf_gettimeofday(); 322int sys_osf_select(); 323int sys_osf_setitimer(); 324int sys_osf_settimeofday(); 325int sys_osf_utimes(); 326int sys_osf_wait4(); 327#endif 328 329#if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64) 330int sys_getpagesize(); 331#endif 332 333#ifdef MIPS 334int sys_sysmips(); 335#endif 336 337#if defined M68K || defined SH 338int sys_cacheflush(); 339#endif 340 341#if defined OR1K 342int sys_or1k_atomic(); 343#endif 344 345#ifdef POWERPC 346int sys_subpage_prot(); 347#endif 348 349#ifdef BFIN 350int sys_cacheflush(); 351int sys_sram_alloc(); 352#endif 353 354#if defined SPARC || defined SPARC64 355#include "sparc/syscall1.h" 356int sys_execv(); 357int sys_getmsg(); 358int sys_putmsg(); 359#endif 360