linux_dummy.c revision 12458
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.1 1995/06/25 17:32:33 sos Exp $ 29 */ 30 31#include <sys/param.h> 32#include <sys/sysproto.h> 33#include <sys/systm.h> 34#include <sys/proc.h> 35#include <sys/resourcevar.h> 36 37#include <i386/linux/sysproto.h> 38 39int 40linux_setup(struct proc *p, void *args, int *retval) 41{ 42 printf("Linux-emul(%d): setup() not supported\n", p->p_pid); 43 return ENOSYS; 44} 45 46int 47linux_break(struct proc *p, void *args, int *retval) 48{ 49 printf("Linux-emul(%d): break() not supported\n", p->p_pid); 50 return ENOSYS; 51} 52 53int 54linux_stat(struct proc *p, void *args, int *retval) 55{ 56 printf("Linux-emul(%d): stat() not supported\n", p->p_pid); 57 return ENOSYS; 58} 59 60int 61linux_fstat(struct proc *p, void *args, int *retval) 62{ 63 printf("Linux-emul(%d): fstat() not supported\n", p->p_pid); 64 return ENOSYS; 65} 66 67int 68linux_mount(struct proc *p, void *args, int *retval) 69{ 70 printf("Linux-emul(%d): mount() not supported\n", p->p_pid); 71 return ENOSYS; 72} 73 74int 75linux_umount(struct proc *p, void *args, int *retval) 76{ 77 printf("Linux-emul(%d): umount() not supported\n", p->p_pid); 78 return ENOSYS; 79} 80 81int 82linux_stime(struct proc *p, void *args, int *retval) 83{ 84 printf("Linux-emul(%d): stime() not supported\n", p->p_pid); 85 return ENOSYS; 86} 87 88int 89linux_ptrace(struct proc *p, void *args, int *retval) 90{ 91 printf("Linux-emul(%d): ptrace() not supported\n", p->p_pid); 92 return ENOSYS; 93} 94 95int 96linux_pause(struct proc *p, void *args, int *retval) 97{ 98 printf("Linux-emul(%d): pause() not supported\n", p->p_pid); 99 return ENOSYS; 100} 101 102int 103linux_stty(struct proc *p, void *args, int *retval) 104{ 105 printf("Linux-emul(%d): stty() not supported\n", p->p_pid); 106 return ENOSYS; 107} 108 109int 110linux_gtty(struct proc *p, void *args, int *retval) 111{ 112 printf("Linux-emul(%d): gtty() not supported\n", p->p_pid); 113 return ENOSYS; 114} 115 116int 117linux_nice(struct proc *p, void *args, int *retval) 118{ 119 printf("Linux-emul(%d): nice() not supported\n", p->p_pid); 120 return ENOSYS; 121} 122 123int 124linux_ftime(struct proc *p, void *args, int *retval) 125{ 126 printf("Linux-emul(%d): ftime() not supported\n", p->p_pid); 127 return ENOSYS; 128} 129 130int 131linux_prof(struct proc *p, void *args, int *retval) 132{ 133 printf("Linux-emul(%d): prof() not supported\n", p->p_pid); 134 return ENOSYS; 135} 136 137int 138linux_signal(struct proc *p, void *args, int *retval) 139{ 140 printf("Linux-emul(%d): signal() not supported\n", p->p_pid); 141 return ENOSYS; 142} 143 144int 145linux_phys(struct proc *p, void *args, int *retval) 146{ 147 printf("Linux-emul(%d): phys() not supported\n", p->p_pid); 148 return ENOSYS; 149} 150 151int 152linux_lock(struct proc *p, void *args, int *retval) 153{ 154 printf("Linux-emul(%d): lock() not supported\n", p->p_pid); 155 return ENOSYS; 156} 157 158int 159linux_mpx(struct proc *p, void *args, int *retval) 160{ 161 printf("Linux-emul(%d): mpx() not supported\n", p->p_pid); 162 return ENOSYS; 163} 164 165int 166linux_ulimit(struct proc *p, void *args, int *retval) 167{ 168 printf("Linux-emul(%d): ulimit() not supported\n", p->p_pid); 169 return ENOSYS; 170} 171 172int 173linux_olduname(struct proc *p, void *args, int *retval) 174{ 175 printf("Linux-emul(%d): olduname() not supported\n", p->p_pid); 176 return ENOSYS; 177} 178 179int 180linux_ustat(struct proc *p, void *args, int *retval) 181{ 182 printf("Linux-emul(%d): ustat() not supported\n", p->p_pid); 183 return ENOSYS; 184} 185 186int 187linux_ioperm(struct proc *p, void *args, int *retval) 188{ 189 printf("Linux-emul(%d): ioperm() not supported\n", p->p_pid); 190 return 0; /* EINVAL SOS XXX */ 191} 192 193int 194linux_syslog(struct proc *p, void *args, int *retval) 195{ 196 printf("Linux-emul(%d): syslog() not supported (BSD sigreturn)\n",p->p_pid); 197 return sigreturn(p, args, retval); 198} 199 200int 201linux_iopl(struct proc *p, void *args, int *retval) 202{ 203 printf("Linux-emul(%d): iopl() not supported\n", p->p_pid); 204 return ENOSYS; 205} 206 207int 208linux_vhangup(struct proc *p, void *args, int *retval) 209{ 210 printf("Linux-emul(%d): vhangup() not supported\n", p->p_pid); 211 return ENOSYS; 212} 213 214int 215linux_idle(struct proc *p, void *args, int *retval) 216{ 217 printf("Linux-emul(%d): idle() not supported\n", p->p_pid); 218 return ENOSYS; 219} 220 221int 222linux_vm86(struct proc *p, void *args, int *retval) 223{ 224 printf("Linux-emul(%d): vm86() not supported\n", p->p_pid); 225 return ENOSYS; 226} 227 228int 229linux_swapoff(struct proc *p, void *args, int *retval) 230{ 231 printf("Linux-emul(%d): swapoff() not supported\n", p->p_pid); 232 return ENOSYS; 233} 234 235int 236linux_sysinfo(struct proc *p, void *args, int *retval) 237{ 238 printf("Linux-emul(%d): sysinfo() not supported\n", p->p_pid); 239 return ENOSYS; 240} 241 242int 243linux_sigreturn(struct proc *p, void *args, int *retval) 244{ 245 printf("Linux-emul(%d): sigreturn() not supported\n", p->p_pid); 246 return ENOSYS; 247} 248 249int 250linux_clone(struct proc *p, void *args, int *retval) 251{ 252 printf("Linux-emul(%d): clone() not supported\n", p->p_pid); 253 return ENOSYS; 254} 255 256int 257linux_uname(struct proc *p, void *args, int *retval) 258{ 259 printf("Linux-emul(%d): uname() not supported\n", p->p_pid); 260 return ENOSYS; 261} 262 263int 264linux_modify_ldt(struct proc *p, void *args, int *retval) 265{ 266 printf("Linux-emul(%d): modify_ldt() not supported\n", p->p_pid); 267 return ENOSYS; 268} 269 270int 271linux_adjtimex(struct proc *p, void *args, int *retval) 272{ 273 printf("Linux-emul(%d): adjtimex() not supported\n", p->p_pid); 274 return ENOSYS; 275} 276 277int 278linux_create_module(struct proc *p, void *args, int *retval) 279{ 280 printf("Linux-emul(%d): create_module() not supported\n", p->p_pid); 281 return ENOSYS; 282} 283 284int 285linux_init_module(struct proc *p, void *args, int *retval) 286{ 287 printf("Linux-emul(%d): init_module() not supported\n", p->p_pid); 288 return ENOSYS; 289} 290 291int 292linux_delete_module(struct proc *p, void *args, int *retval) 293{ 294 printf("Linux-emul(%d): delete_module() not supported\n", p->p_pid); 295 return ENOSYS; 296} 297 298int 299linux_get_kernel_syms(struct proc *p, void *args, int *retval) 300{ 301 printf("Linux-emul(%d): get_kernel_syms() not supported\n", p->p_pid); 302 return ENOSYS; 303} 304 305int 306linux_quotactl(struct proc *p, void *args, int *retval) 307{ 308 printf("Linux-emul(%d): quotactl() not supported\n", p->p_pid); 309 return ENOSYS; 310} 311 312int 313linux_bdflush(struct proc *p, void *args, int *retval) 314{ 315 printf("Linux-emul(%d): bdflush() not supported\n", p->p_pid); 316 return ENOSYS; 317} 318