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 | |
| 33 | /* primary syscalls */ |
| 34 | |
| 35 | int sys_setup(), sys_exit(), sys_fork(), sys_read(), sys_write(); |
| 36 | int sys_open(), sys_close(), sys_waitpid(), sys_creat(), sys_link(); |
| 37 | int sys_unlink(), sys_execve(), sys_chdir(), sys_time(), sys_mknod(); |
| 38 | int sys_chmod(), sys_chown(), sys_break(), sys_oldstat(); |
| 39 | int sys_lseek(), sys_getpid(), sys_mount(), sys_umount(); |
| 40 | int sys_setuid(), sys_getuid(), sys_stime(), sys_ptrace(); |
| 41 | int sys_alarm(), sys_oldfstat(), sys_pause(), sys_utime(); |
| 42 | int sys_stty(), sys_gtty(), sys_access(), sys_nice(), sys_ftime(); |
| 43 | int sys_sync(), sys_kill(), sys_rename(), sys_mkdir(), sys_rmdir(); |
| 44 | int sys_dup(), sys_pipe(), sys_times(), sys_prof(), sys_brk(); |
| 45 | int sys_setgid(), sys_getgid(), sys_signal(), sys_geteuid(); |
| 46 | int sys_getegid(), sys_acct(), sys_phys(), sys_lock(), sys_ioctl(); |
| 47 | int sys_fcntl(), sys_mpx(), sys_setpgid(), sys_ulimit(); |
| 48 | int sys_olduname(), sys_umask(), sys_chroot(), sys_ustat(); |
| 49 | int sys_dup2(), sys_getppid(), sys_getpgrp(), sys_setsid(); |
| 50 | int sys_sigaction(), sys_siggetmask(), sys_sigsetmask(); |
| 51 | int sys_setreuid(), sys_setregid(), sys_sigsuspend(); |
| 52 | int sys_sigpending(), sys_sethostname(), sys_setrlimit(); |
| 53 | int sys_getrlimit(), sys_getrusage(), sys_gettimeofday(); |
| 54 | int sys_settimeofday(), sys_getgroups(), sys_setgroups(); |
| 55 | int sys_oldselect(), sys_symlink(), sys_oldlstat(), sys_readlink(); |
| 56 | int sys_uselib(), sys_swapon(), sys_reboot(), sys_readdir(); |
| 57 | int sys_mmap(), sys_munmap(), sys_truncate(), sys_ftruncate(); |
| 58 | int sys_fchmod(), sys_fchown(), sys_getpriority(); |
| 59 | int sys_setpriority(), sys_profil(), sys_statfs(), sys_fstatfs(); |
| 60 | int sys_ioperm(), sys_socketcall(), sys_syslog(), sys_setitimer(); |
| 61 | int sys_getitimer(), sys_stat(), sys_lstat(), sys_fstat(); |
| 62 | int sys_uname(), sys_iopl(), sys_vhangup(), sys_idle(), sys_vm86(); |
| 63 | int sys_wait4(), sys_swapoff(), sys_ipc(), sys_sigreturn(); |
| 64 | int sys_fsync(), sys_clone(), sys_setdomainname(), sys_sysinfo(); |
| 65 | int sys_modify_ldt(), sys_adjtimex(), sys_mprotect(); |
| 66 | int sys_sigprocmask(), sys_create_module(), sys_init_module(); |
| 67 | int sys_delete_module(), sys_get_kernel_syms(), sys_quotactl(); |
| 68 | int sys_getpgid(), sys_fchdir(), sys_bdflush(); |
| 69 | int sys_sysfs(), sys_personality(), sys_afs_syscall(); |
| 70 | int sys_setfsuid(), sys_setfsgid(), sys_llseek(); |
| 71 | int sys_getdents(), sys_flock(), sys_msync(); |
| 72 | int sys_readv(), sys_writev(), sys_select(); |
| 73 | int sys_getsid(), sys_fdatasync(), sys_sysctl(); |
| 74 | int sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall(); |
| 75 | int sys_sched_setparam(), sys_sched_getparam(); |
| 76 | int sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield(); |
| 77 | int sys_sched_get_priority_max(), sys_sched_get_priority_min(); |
| 78 | int sys_sched_rr_get_interval(), sys_nanosleep(), sys_mremap(); |
| 79 | int sys_sendmsg(), sys_recvmsg(), sys_setresuid(), sys_setresgid(); |
| 80 | int sys_getresuid(), sys_getresgid(), sys_pread(), sys_pwrite(), sys_getcwd(); |
| 81 | int sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction(); |
| 82 | int sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo(); |
| 83 | int sys_rt_sigtimedwait(), sys_prctl(), sys_poll(), sys_vfork(); |
| 84 | |
| 85 | |
| 86 | /* sys_socketcall subcalls */ |
| 87 | |
| 88 | int sys_socket(), sys_bind(), sys_connect(), sys_listen(); |
| 89 | int sys_accept(), sys_getsockname(), sys_getpeername(), sys_socketpair(); |
| 90 | int sys_send(), sys_recv(), sys_sendto(), sys_recvfrom(); |
| 91 | int sys_shutdown(), sys_setsockopt(), sys_getsockopt(); |
| 92 | |
| 93 | /* new ones */ |
| 94 | int sys_query_module(); |
| 95 | int sys_poll(); |
| 96 | |
| 97 | #ifndef ALPHA |
| 98 | #ifdef POWERPC |
| 99 | # define SYS_socket_subcall 256 |
| 100 | #else |
| 101 | # define SYS_socket_subcall 230 |
| 102 | #endif |
| 103 | #define SYS_socket (SYS_socket_subcall + 1) |
| 104 | #define SYS_bind (SYS_socket_subcall + 2) |
| 105 | #define SYS_connect (SYS_socket_subcall + 3) |
| 106 | #define SYS_listen (SYS_socket_subcall + 4) |
| 107 | #define SYS_accept (SYS_socket_subcall + 5) |
| 108 | #define SYS_getsockname (SYS_socket_subcall + 6) |
| 109 | #define SYS_getpeername (SYS_socket_subcall + 7) |
| 110 | #define SYS_socketpair (SYS_socket_subcall + 8) |
| 111 | #define SYS_send (SYS_socket_subcall + 9) |
| 112 | #define SYS_recv (SYS_socket_subcall + 10) |
| 113 | #define SYS_sendto (SYS_socket_subcall + 11) |
| 114 | #define SYS_recvfrom (SYS_socket_subcall + 12) |
| 115 | #define SYS_shutdown (SYS_socket_subcall + 13) |
| 116 | #define SYS_setsockopt (SYS_socket_subcall + 14) |
| 117 | #define SYS_getsockopt (SYS_socket_subcall + 15) |
| 118 | |
| 119 | #define SYS_socket_nsubcalls 16 |
| 120 | #endif /* !ALPHA */ |
| 121 | |
| 122 | /* sys_ipc subcalls */ |
| 123 | |
| 124 | int sys_semget(), sys_semctl(); |
| 125 | int sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl(); |
| 126 | int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl(); |
| 127 | |
| 128 | #ifndef ALPHA |
| 129 | #ifdef POWERPC |
| 130 | # define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls)) |
| 131 | #else |
| 132 | # define SYS_ipc_subcall 200 |
| 133 | #endif |
| 134 | #define SYS_semop (SYS_ipc_subcall + 1) |
| 135 | #define SYS_semget (SYS_ipc_subcall + 2) |
| 136 | #define SYS_semctl (SYS_ipc_subcall + 3) |
| 137 | #define SYS_msgsnd (SYS_ipc_subcall + 11) |
| 138 | #define SYS_msgrcv (SYS_ipc_subcall + 12) |
| 139 | #define SYS_msgget (SYS_ipc_subcall + 13) |
| 140 | #define SYS_msgctl (SYS_ipc_subcall + 14) |
| 141 | #define SYS_shmat (SYS_ipc_subcall + 21) |
| 142 | #define SYS_shmdt (SYS_ipc_subcall + 22) |
| 143 | #define SYS_shmget (SYS_ipc_subcall + 23) |
| 144 | #define SYS_shmctl (SYS_ipc_subcall + 24) |
| 145 | |
| 146 | #define SYS_ipc_nsubcalls 25 |
| 147 | #endif /* ALPHA */ |
| 148 | |
| 149 | #ifdef ALPHA |
| 150 | int osf_statfs(), osf_fstatfs(), sys_getpagesize(), sys_madvise(); |
| 151 | #endif |
| 152 | |
| 153 | int sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes(); |
| 154 | int sys_capget(), sys_capset(); |
| 155 | |