linux_dummy.c revision 30994
1/*- 2 * Copyright (c) 1994-1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer 10 * in this position and unchanged. 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 withough 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: linux_dummy.c,v 1.7 1997/10/29 08:17:09 kato Exp $ 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/proc.h> 34 35#include <i386/linux/linux.h> 36#include <i386/linux/linux_proto.h> 37 38int 39linux_setup(struct proc *p, struct linux_setup_args *args) 40{ 41 printf("Linux-emul(%d): setup() not supported\n", p->p_pid); 42 return ENOSYS; 43} 44 45int 46linux_break(struct proc *p, struct linux_break_args *args) 47{ 48 printf("Linux-emul(%d): break() not supported\n", p->p_pid); 49 return ENOSYS; 50} 51 52int 53linux_stat(struct proc *p, struct linux_stat_args *args) 54{ 55 printf("Linux-emul(%d): stat() not supported\n", p->p_pid); 56 return ENOSYS; 57} 58 59int 60linux_fstat(struct proc *p, struct linux_fstat_args *args) 61{ 62 printf("Linux-emul(%d): fstat() not supported\n", p->p_pid); 63 return ENOSYS; 64} 65 66int 67linux_mount(struct proc *p, struct linux_mount_args *args) 68{ 69 printf("Linux-emul(%d): mount() not supported\n", p->p_pid); 70 return ENOSYS; 71} 72 73int 74linux_umount(struct proc *p, struct linux_umount_args *args) 75{ 76 printf("Linux-emul(%d): umount() not supported\n", p->p_pid); 77 return ENOSYS; 78} 79 80int 81linux_stime(struct proc *p, struct linux_stime_args *args) 82{ 83 printf("Linux-emul(%d): stime() not supported\n", p->p_pid); 84 return ENOSYS; 85} 86 87int 88linux_ptrace(struct proc *p, struct linux_ptrace_args *args) 89{ 90 printf("Linux-emul(%d): ptrace() not supported\n", p->p_pid); 91 return ENOSYS; 92} 93 94int 95linux_stty(struct proc *p, struct linux_stty_args *args) 96{ 97 printf("Linux-emul(%d): stty() not supported\n", p->p_pid); 98 return ENOSYS; 99} 100 101int 102linux_gtty(struct proc *p, struct linux_gtty_args *args) 103{ 104 printf("Linux-emul(%d): gtty() not supported\n", p->p_pid); 105 return ENOSYS; 106} 107 108int 109linux_ftime(struct proc *p, struct linux_ftime_args *args) 110{ 111 printf("Linux-emul(%d): ftime() not supported\n", p->p_pid); 112 return ENOSYS; 113} 114 115int 116linux_prof(struct proc *p, struct linux_prof_args *args) 117{ 118 printf("Linux-emul(%d): prof() not supported\n", p->p_pid); 119 return ENOSYS; 120} 121 122int 123linux_phys(struct proc *p, struct linux_phys_args *args) 124{ 125 printf("Linux-emul(%d): phys() not supported\n", p->p_pid); 126 return ENOSYS; 127} 128 129int 130linux_lock(struct proc *p, struct linux_lock_args *args) 131{ 132 printf("Linux-emul(%d): lock() not supported\n", p->p_pid); 133 return ENOSYS; 134} 135 136int 137linux_mpx(struct proc *p, struct linux_mpx_args *args) 138{ 139 printf("Linux-emul(%d): mpx() not supported\n", p->p_pid); 140 return ENOSYS; 141} 142 143int 144linux_ulimit(struct proc *p, struct linux_ulimit_args *args) 145{ 146 printf("Linux-emul(%d): ulimit() not supported\n", p->p_pid); 147 return ENOSYS; 148} 149 150int 151linux_olduname(struct proc *p, struct linux_olduname_args *args) 152{ 153 printf("Linux-emul(%d): olduname() not supported\n", p->p_pid); 154 return ENOSYS; 155} 156 157int 158linux_ustat(struct proc *p, struct linux_ustat_args *args) 159{ 160 printf("Linux-emul(%d): ustat() not supported\n", p->p_pid); 161 return ENOSYS; 162} 163 164int 165linux_ioperm(struct proc *p, struct linux_ioperm_args *args) 166{ 167 printf("Linux-emul(%d): ioperm() not supported\n", p->p_pid); 168 return 0; /* EINVAL SOS XXX */ 169} 170 171int 172linux_ksyslog(struct proc *p, struct linux_ksyslog_args *args) 173{ 174 printf("Linux-emul(%d): ksyslog(%x) not supported\n", 175 p->p_pid, args->what); 176 return ENOSYS; /* EPERM - Peter - it's a root-only thing */ 177} 178 179int 180linux_vhangup(struct proc *p, struct linux_vhangup_args *args) 181{ 182 printf("Linux-emul(%d): vhangup() not supported\n", p->p_pid); 183 return ENOSYS; 184} 185 186int 187linux_idle(struct proc *p, struct linux_idle_args *args) 188{ 189 printf("Linux-emul(%d): idle() not supported\n", p->p_pid); 190 return ENOSYS; 191} 192 193int 194linux_vm86(struct proc *p, struct linux_vm86_args *args) 195{ 196 printf("Linux-emul(%d): vm86() not supported\n", p->p_pid); 197 return ENOSYS; 198} 199 200int 201linux_swapoff(struct proc *p, struct linux_swapoff_args *args) 202{ 203 printf("Linux-emul(%d): swapoff() not supported\n", p->p_pid); 204 return ENOSYS; 205} 206 207int 208linux_sysinfo(struct proc *p, struct linux_sysinfo_args *args) 209{ 210 printf("Linux-emul(%d): sysinfo() not supported\n", p->p_pid); 211 return ENOSYS; 212} 213 214int 215linux_clone(struct proc *p, struct linux_clone_args *args) 216{ 217 printf("Linux-emul(%d): clone() not supported\n", p->p_pid); 218 return ENOSYS; 219} 220 221int 222linux_uname(struct proc *p, struct linux_uname_args *args) 223{ 224 printf("Linux-emul(%d): uname() not supported\n", p->p_pid); 225 return ENOSYS; 226} 227 228int 229linux_modify_ldt(struct proc *p, struct linux_modify_ldt_args *args) 230{ 231 printf("Linux-emul(%d): modify_ldt() not supported\n", p->p_pid); 232 return ENOSYS; 233} 234 235int 236linux_adjtimex(struct proc *p, struct linux_adjtimex_args *args) 237{ 238 printf("Linux-emul(%d): adjtimex() not supported\n", p->p_pid); 239 return ENOSYS; 240} 241 242int 243linux_create_module(struct proc *p, struct linux_create_module_args *args) 244{ 245 printf("Linux-emul(%d): create_module() not supported\n", p->p_pid); 246 return ENOSYS; 247} 248 249int 250linux_init_module(struct proc *p, struct linux_init_module_args *args) 251{ 252 printf("Linux-emul(%d): init_module() not supported\n", p->p_pid); 253 return ENOSYS; 254} 255 256int 257linux_delete_module(struct proc *p, struct linux_delete_module_args *args) 258{ 259 printf("Linux-emul(%d): delete_module() not supported\n", p->p_pid); 260 return ENOSYS; 261} 262 263int 264linux_get_kernel_syms(struct proc *p, struct linux_get_kernel_syms_args *args) 265{ 266 printf("Linux-emul(%d): get_kernel_syms() not supported\n", p->p_pid); 267 return ENOSYS; 268} 269 270int 271linux_quotactl(struct proc *p, struct linux_quotactl_args *args) 272{ 273 printf("Linux-emul(%d): quotactl() not supported\n", p->p_pid); 274 return ENOSYS; 275} 276 277int 278linux_bdflush(struct proc *p, struct linux_bdflush_args *args) 279{ 280 printf("Linux-emul(%d): bdflush() not supported\n", p->p_pid); 281 return ENOSYS; 282} 283